Update WordPress to 5.2
This commit is contained in:
parent
489b5a5914
commit
e00f87f2f5
599 changed files with 119573 additions and 55990 deletions
|
@ -1878,7 +1878,7 @@ function get_attachment_icon_src( $id = 0, $fullsize = false ) {
|
|||
if ( !$fullsize && $src = wp_get_attachment_thumb_url( $post->ID ) ) {
|
||||
// We have a thumbnail desired, specified and existing
|
||||
|
||||
$src_file = basename($src);
|
||||
$src_file = wp_basename($src);
|
||||
} elseif ( wp_attachment_is_image( $post->ID ) ) {
|
||||
// We have an image without a thumbnail
|
||||
|
||||
|
@ -1888,7 +1888,7 @@ function get_attachment_icon_src( $id = 0, $fullsize = false ) {
|
|||
// No thumb, no image. We'll look for a mime-related icon instead.
|
||||
|
||||
$icon_dir = apply_filters( 'icon_dir', get_template_directory() . '/images' );
|
||||
$src_file = $icon_dir . '/' . basename($src);
|
||||
$src_file = $icon_dir . '/' . wp_basename($src);
|
||||
}
|
||||
|
||||
if ( !isset($src) || !$src )
|
||||
|
@ -3058,7 +3058,7 @@ function remove_custom_background() {
|
|||
*/
|
||||
function get_theme_data( $theme_file ) {
|
||||
_deprecated_function( __FUNCTION__, '3.4.0', 'wp_get_theme()' );
|
||||
$theme = new WP_Theme( basename( dirname( $theme_file ) ), dirname( dirname( $theme_file ) ) );
|
||||
$theme = new WP_Theme( wp_basename( dirname( $theme_file ) ), dirname( dirname( $theme_file ) ) );
|
||||
|
||||
$theme_data = array(
|
||||
'Name' => $theme->get('Name'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue