Ticket #23102: 23102.diff
File 23102.diff, 902 bytes (added by , 12 years ago) |
---|
-
wp-includes/media.php
1391 1391 $size_meta = $meta['sizes'][ $size ]; 1392 1392 1393 1393 // We have the actual image size, but might need to further constrain it if content_width is narrower. 1394 // This is not necessary for thumbnails and medium size. 1395 if ( 'thumbnail' == $size || 'medium' == $size ) { 1396 $width = $size_meta['width']; 1397 $height = $size_meta['height']; 1398 } else { 1399 list( $width, $height ) = image_constrain_size_for_editor( $size_meta['width'], $size_meta['height'], $size, 'edit' ); 1400 } 1394 list( $width, $height ) = image_constrain_size_for_editor( $size_meta['width'], $size_meta['height'], $size, 'edit' ); 1401 1395 1402 1396 $sizes[ $size ] = array( 1403 1397 'height' => $height,