Changeset 13140
- Timestamp:
- 02/14/2010 06:34:47 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/media.php
r13103 r13140 65 65 $max_width = intval( $_wp_additional_image_sizes[$size]['width'] ); 66 66 $max_height = intval( $_wp_additional_image_sizes[$size]['height'] ); 67 if ( intval($content_width) > 0 && is_admin() ) // Only in admin. Assume that theme authors know what they're doing. 68 $max_width = min( intval($content_width), $max_width ); 67 69 } 68 70 // $size == 'full' has no constraint
Note: See TracChangeset
for help on using the changeset viewer.