mirror of
git://develop.git.wordpress.org/
synced 2025-02-26 01:22:47 +01:00
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:
parent
5dd9108e48
commit
2d9949bf91
@ -778,7 +778,7 @@ function wp_save_image( $post_id ) {
|
||||
if ( isset( $_wp_additional_image_sizes[ $size ] ) ) {
|
||||
$width = intval( $_wp_additional_image_sizes[ $size ]['width'] );
|
||||
$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 {
|
||||
$height = get_option( "{$size}_size_h" );
|
||||
$width = get_option( "{$size}_size_w" );
|
||||
|
Loading…
x
Reference in New Issue
Block a user