Changeset 10227 for trunk/wp-includes/media.php
- Timestamp:
- 12/19/2008 07:04:18 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/media.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/media.php
r10150 r10227 232 232 $width_ratio = $height_ratio = 1.0; 233 233 234 if ( $max_width > 0 && $current_width > $max_width )234 if ( $max_width > 0 && $current_width > 0 && $current_width > $max_width ) 235 235 $width_ratio = $max_width / $current_width; 236 236 237 if ( $max_height > 0 && $current_height > $max_height )237 if ( $max_height > 0 && $current_height > 0 && $current_height > $max_height ) 238 238 $height_ratio = $max_height / $current_height; 239 239
Note: See TracChangeset
for help on using the changeset viewer.