Changeset 60730
- Timestamp:
- 09/11/2025 03:24:43 PM (4 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/media.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r60681 r60730 825 825 826 826 $data = array_shift( $candidates ); 827 } elseif ( ! empty( $imagedata['sizes']['thumbnail'] ) 828 && $size[0] <= $imagedata['sizes']['thumbnail']['width'] 829 && $size[1] <= $imagedata['sizes']['thumbnail']['width'] 830 ) { 827 831 /* 828 * When the size requested is smaller than the thumbnail dimensions, we 829 * fall back to the thumbnail size to maintain backward compatibility with 830 * pre 4.6 versions of WordPress. 831 */ 832 } elseif ( ! empty( $imagedata['sizes']['thumbnail'] ) && $imagedata['sizes']['thumbnail']['width'] >= $size[0] && $imagedata['sizes']['thumbnail']['width'] >= $size[1] ) { 832 * When the size requested is smaller than the thumbnail dimensions, we 833 * fall back to the thumbnail size to maintain backward compatibility with 834 * pre-4.6 versions of WordPress. 835 */ 833 836 $data = $imagedata['sizes']['thumbnail']; 834 837 } else {
Note: See TracChangeset
for help on using the changeset viewer.