From 561cca07d5058793530e91bd267e1f8f037c332c Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Sat, 13 Feb 2010 09:40:04 +0000 Subject: [PATCH] Do not limit thumbnails by the content_width. props Viper007Bond. fixes #12146 git-svn-id: https://develop.svn.wordpress.org/trunk@13103 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/media.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/wp-includes/media.php b/wp-includes/media.php index ebcc4ec8e2..9811d0f291 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -64,8 +64,6 @@ function image_constrain_size_for_editor($width, $height, $size = 'medium') { } elseif ( isset( $_wp_additional_image_sizes ) && count( $_wp_additional_image_sizes ) && in_array( $size, array_keys( $_wp_additional_image_sizes ) ) ) { $max_width = intval( $_wp_additional_image_sizes[$size]['width'] ); $max_height = intval( $_wp_additional_image_sizes[$size]['height'] ); - if ( intval($content_width) > 0 ) - $max_width = min( intval($content_width), $max_width ); } // $size == 'full' has no constraint else {