diff --git src/wp-includes/media.php src/wp-includes/media.php
index 9f35f79..8d23f93 100644
|
|
|
function wp_calculate_image_srcset( $size_array, $image_src, $image_meta, $attac |
| 1035 | 1035 | $image_baseurl = set_url_scheme( $image_baseurl, 'https' ); |
| 1036 | 1036 | } |
| 1037 | 1037 | |
| | 1038 | $image_basepath = parse_url( $image_baseurl, PHP_URL_PATH ); |
| | 1039 | |
| 1038 | 1040 | /* |
| 1039 | 1041 | * Images that have been edited in WordPress after being uploaded will |
| 1040 | 1042 | * contain a unique hash. Look for that hash and use it later to filter |
| … |
… |
function wp_calculate_image_srcset( $size_array, $image_src, $image_meta, $attac |
| 1075 | 1077 | } |
| 1076 | 1078 | |
| 1077 | 1079 | // If the file name is part of the `src`, we've confirmed a match. |
| 1078 | | if ( ! $src_matched && false !== strpos( $image_src, $dirname . $image['file'] ) ) { |
| | 1080 | if ( ! $src_matched && false !== strpos( $image_src, $image_basepath . $image['file'] ) ) { |
| 1079 | 1081 | $src_matched = $is_src = true; |
| 1080 | 1082 | } |
| 1081 | 1083 | |