Changeset 4759
- Timestamp:
- 01/17/2007 06:23:18 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-functions.php
r4751 r4759 2080 2080 $max = apply_filters( 'wp_thumbnail_creation_size_limit', 3 * 1024 * 1024, $attachment_id, $file ); 2081 2081 2082 if ( $max > 0 &&$metadata['width'] * $metadata['height'] < $max ) {2082 if ( $max < 0 || $metadata['width'] * $metadata['height'] < $max ) { 2083 2083 $max_side = apply_filters( 'wp_thumbnail_max_side_length', 128, $attachment_id, $file ); 2084 2084 $thumb = wp_create_thumbnail( $file, $max_side );
Note: See TracChangeset
for help on using the changeset viewer.