diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php
index 1cf3d3ff0b..c9b8c74ca6 100644
a
|
b
|
function image_get_intermediate_size( $post_id, $size = 'thumbnail' ) { |
759 | 759 | */ |
760 | 760 | } elseif ( ! empty( $imagedata['sizes']['thumbnail'] ) && $imagedata['sizes']['thumbnail']['width'] >= $size[0] && $imagedata['sizes']['thumbnail']['width'] >= $size[1] ) { |
761 | 761 | $data = $imagedata['sizes']['thumbnail']; |
| 762 | } elseif ( $size[0] == $imagedata['width'] && $size[1] == $imagedata['height'] ) { |
| 763 | $data = $imagedata; |
762 | 764 | } else { |
763 | 765 | return false; |
764 | 766 | } |
… |
… |
function image_get_intermediate_size( $post_id, $size = 'thumbnail' ) { |
768 | 770 | |
769 | 771 | } elseif ( ! empty( $imagedata['sizes'][ $size ] ) ) { |
770 | 772 | $data = $imagedata['sizes'][ $size ]; |
| 773 | } elseif ( ! empty( $_wp_additional_image_sizes = wp_get_additional_image_sizes() ) && ! empty( $_wp_additional_image_sizes[ $size ] ) && $_wp_additional_image_sizes[ $size ]['width'] == $imagedata['width'] && $_wp_additional_image_sizes[ $size ]['height'] == $imagedata['height'] ) { |
| 774 | $data = $imagedata; |
771 | 775 | } |
772 | 776 | |
773 | 777 | // If we still don't have a match at this point, return false. |