diff --git src/wp-includes/media.php src/wp-includes/media.php
index 002581e174..cd769add78 100644
|
|
function image_downsize( $id, $size = 'medium' ) { |
214 | 214 | // If the file isn't an image, attempt to replace its URL with a rendered image from its meta. |
215 | 215 | // Otherwise, a non-image type could be returned. |
216 | 216 | if ( ! $is_image ) { |
217 | | if ( ! empty( $meta['sizes'] ) ) { |
| 217 | if ( ! empty( $meta['sizes'] ) && isset( $meta['sizes']['full'] ) ) { |
218 | 218 | $img_url = str_replace( $img_url_basename, $meta['sizes']['full']['file'], $img_url ); |
219 | 219 | $img_url_basename = $meta['sizes']['full']['file']; |
220 | 220 | $width = $meta['sizes']['full']['width']; |