Ticket #34460: 34460.diff
| File 34460.diff, 458 bytes (added by , 10 years ago) |
|---|
-
src/wp-includes/media.php
diff --git src/wp-includes/media.php src/wp-includes/media.php index 30df322..b131966 100644
function wp_img_add_srcset_and_sizes( $image ) { 1180 1180 foreach( $meta['sizes'] as $image_size => $image_size_data ) { 1181 1181 if ( $image_filename === $image_size_data['file'] ) { 1182 1182 $size = $image_size; 1183 $width = $width ? $width : $image_size['width']; 1183 1184 break; 1184 1185 } 1185 1186 }