WordPress.org

Make WordPress Core

Ticket #12146: 12146.patch

File 12146.patch, 655 bytes (added by Viper007Bond, 4 years ago)
  • wp-includes/media.php

     
    6464        } elseif ( isset( $_wp_additional_image_sizes ) && count( $_wp_additional_image_sizes ) && in_array( $size, array_keys( $_wp_additional_image_sizes ) ) ) { 
    6565                $max_width = intval( $_wp_additional_image_sizes[$size]['width'] ); 
    6666                $max_height = intval( $_wp_additional_image_sizes[$size]['height'] ); 
    67                 if ( intval($content_width) > 0 ) 
    68                         $max_width = min( intval($content_width), $max_width ); 
    6967        } 
    7068        // $size == 'full' has no constraint 
    7169        else {