diff --git a/wp-includes/media.php b/wp-includes/media.php index 861e6e27bf..da37f902c5 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -220,7 +220,7 @@ function image_downsize( $id, $size = 'medium' ) { // If the file isn't an image, attempt to replace its URL with a rendered image from its meta. // Otherwise, a non-image type could be returned. if ( ! $is_image ) { - if ( ! empty( $meta['sizes'] ) ) { + if ( ! empty( $meta['sizes']['full'] ) ) { $img_url = str_replace( $img_url_basename, $meta['sizes']['full']['file'], $img_url ); $img_url_basename = $meta['sizes']['full']['file']; $width = $meta['sizes']['full']['width']; diff --git a/wp-includes/version.php b/wp-includes/version.php index 58aa3abcb9..91c4341332 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4-alpha-46770'; +$wp_version = '5.4-alpha-46772'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.