diff --git a/wp-includes/media.php b/wp-includes/media.php index 42b3e23363..088e6868c7 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -1602,7 +1602,10 @@ function wp_image_src_get_dimensions( $image_src, $image_meta, $attachment_id = $dimensions = false; // Is it a full size image? - if ( strpos( $image_src, $image_meta['file'] ) !== false ) { + if ( + isset( $image_meta['file'] ) && + strpos( $image_src, $image_meta['file'] ) !== false + ) { $dimensions = array( (int) $image_meta['width'], (int) $image_meta['height'], diff --git a/wp-includes/version.php b/wp-includes/version.php index ea7f042b19..e38f07d6d3 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.7-alpha-50135'; +$wp_version = '5.7-alpha-50136'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.