diff --git src/wp-includes/media.php src/wp-includes/media.php
index 6b0187a..8a5b548 100644
|
|
function wp_calculate_image_srcset( $size_array, $image_src, $image_meta, $attac |
1060 | 1060 | */ |
1061 | 1061 | foreach ( $image_sizes as $image ) { |
1062 | 1062 | |
| 1063 | // Check if image meta isn't corrupted. |
| 1064 | if ( ! is_array( $image ) || 1 > strpos( $image['file'], '.' ) ) { |
| 1065 | continue; |
| 1066 | } |
| 1067 | |
1063 | 1068 | // If the file name is part of the `src`, we've confirmed a match. |
1064 | 1069 | if ( ! $src_matched && false !== strpos( $image_src, $dirname . $image['file'] ) ) { |
1065 | 1070 | $src_matched = true; |