Ticket #48324: 48324.1.diff
File 48324.1.diff, 682 bytes (added by , 5 years ago) |
---|
-
src/wp-includes/media.php
220 220 // If the file isn't an image, attempt to replace its URL with a rendered image from its meta. 221 221 // Otherwise, a non-image type could be returned. 222 222 if ( ! $is_image ) { 223 if ( ! empty( $meta['sizes'] ) ) {223 if ( ! empty( $meta['sizes']['full'] ) ) { 224 224 $img_url = str_replace( $img_url_basename, $meta['sizes']['full']['file'], $img_url ); 225 225 $img_url_basename = $meta['sizes']['full']['file']; 226 226 $width = $meta['sizes']['full']['width'];