Account for new cropping settings in the image editor.

props Otto42, SergeyBiryukov.
fixes #19393.


git-svn-id: https://develop.svn.wordpress.org/trunk@28072 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2014-04-11 03:09:35 +00:00
parent 5dd9108e48
commit 2d9949bf91

View File

@ -778,7 +778,7 @@ function wp_save_image( $post_id ) {
if ( isset( $_wp_additional_image_sizes[ $size ] ) ) { if ( isset( $_wp_additional_image_sizes[ $size ] ) ) {
$width = intval( $_wp_additional_image_sizes[ $size ]['width'] ); $width = intval( $_wp_additional_image_sizes[ $size ]['width'] );
$height = intval( $_wp_additional_image_sizes[ $size ]['height'] ); $height = intval( $_wp_additional_image_sizes[ $size ]['height'] );
$crop = ( $nocrop ) ? false : intval( $_wp_additional_image_sizes[ $size ]['crop'] ); $crop = ( $nocrop ) ? false : $_wp_additional_image_sizes[ $size ]['crop'];
} else { } else {
$height = get_option( "{$size}_size_h" ); $height = get_option( "{$size}_size_h" );
$width = get_option( "{$size}_size_w" ); $width = get_option( "{$size}_size_w" );