mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Media: Use strict comparison in make_subsize().
Follow up from [55278]. Props bueltge, desrosj, mukesh27. See #57370. git-svn-id: https://develop.svn.wordpress.org/trunk@55300 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -503,7 +503,7 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor {
|
||||
$size_data['crop'] = false;
|
||||
}
|
||||
|
||||
if ( ( $this->size['width'] == $size_data['width'] ) && ( $this->size['height'] == $size_data['height'] ) ) {
|
||||
if ( ( $this->size['width'] === $size_data['width'] ) && ( $this->size['height'] === $size_data['height'] ) ) {
|
||||
return new WP_Error( 'image_subsize_create_error', __( 'The image already has the requested size.' ) );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user