Changeset 23264
- Timestamp:
- 01/04/2013 08:52:18 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/media.php
r23262 r23264 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 // Thumbnail, medium, and full sizes are also checked against the site's height/width options. 1395 list( $width, $height ) = image_constrain_size_for_editor( $size_meta['width'], $size_meta['height'], $size, 'edit' ); 1401 1396 1402 1397 $sizes[ $size ] = array(
Note: See TracChangeset
for help on using the changeset viewer.