mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Account for new cropping settings in the image editor.
props Otto42, SergeyBiryukov. fixes #19393. Built from https://develop.svn.wordpress.org/trunk@28072 git-svn-id: http://core.svn.wordpress.org/trunk@27903 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
115b91faff
commit
51412f2e9b
@ -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…
Reference in New Issue
Block a user