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
This commit is contained in:
parent
9e25bff4a0
commit
561cca07d5
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue