diff --git a/wp-includes/media.php b/wp-includes/media.php index 088e6868c7..ea8ca0b68c 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -1604,7 +1604,7 @@ function wp_image_src_get_dimensions( $image_src, $image_meta, $attachment_id = // Is it a full size image? if ( isset( $image_meta['file'] ) && - strpos( $image_src, $image_meta['file'] ) !== false + strpos( $image_src, wp_basename( $image_meta['file'] ) ) !== false ) { $dimensions = array( (int) $image_meta['width'], diff --git a/wp-includes/version.php b/wp-includes/version.php index 2ae3eec8b3..582669cd3a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.7-alpha-50143'; +$wp_version = '5.7-alpha-50144'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.