Changeset 10150 for trunk/wp-includes/media.php
- Timestamp:
- 12/09/2008 06:03:31 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/media.php
r9894 r10150 70 70 71 71 list( $max_width, $max_height ) = apply_filters( 'editor_max_image_size', array( $max_width, $max_height ), $size ); 72 72 73 73 return wp_constrain_dimensions( $width, $height, $max_width, $max_height ); 74 74 } … … 159 159 $height = $meta['height']; 160 160 } 161 161 162 162 if ( $img_url) { 163 163 // we have the actual image size, but might need to further constrain it if content_width is narrower … … 431 431 * than the specified size will be used. If nothing is found, then the function 432 432 * will break out and return false. 433 * 433 * 434 434 * The metadata 'sizes' is used for compatible sizes that can be used for the 435 435 * parameter $size value.
Note: See TracChangeset
for help on using the changeset viewer.