WordPress.org

Make WordPress Core

Ticket #3588: 3588b.diff

File 3588b.diff, 623 bytes (added by mdawaffe, 9 years ago)
  • wp-admin/admin-functions.php

     
    20792079 
    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 ); 
    20852085