Make WordPress Core

Changeset 4759


Ignore:
Timestamp:
01/17/2007 06:23:18 AM (18 years ago)
Author:
ryan
Message:

Thumbnail creation fix from mdawaffe. fixes #3588

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-functions.php

    r4751 r4759  
    20802080        $max = apply_filters( 'wp_thumbnail_creation_size_limit', 3 * 1024 * 1024, $attachment_id, $file );
    20812081
    2082         if ( $max > 0 && $metadata['width'] * $metadata['height'] < $max ) {
     2082        if ( $max < 0 || $metadata['width'] * $metadata['height'] < $max ) {
    20832083            $max_side = apply_filters( 'wp_thumbnail_max_side_length', 128, $attachment_id, $file );
    20842084            $thumb = wp_create_thumbnail( $file, $max_side );
Note: See TracChangeset for help on using the changeset viewer.