Skip to content

Commit 33ba8c5

Browse files
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
1 parent 17a4dcb commit 33ba8c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/class-wp-image-editor-imagick.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ public function make_subsize( $size_data ) {
503503
$size_data['crop'] = false;
504504
}
505505

506-
if ( ( $this->size['width'] == $size_data['width'] ) && ( $this->size['height'] == $size_data['height'] ) ) {
506+
if ( ( $this->size['width'] === $size_data['width'] ) && ( $this->size['height'] === $size_data['height'] ) ) {
507507
return new WP_Error( 'image_subsize_create_error', __( 'The image already has the requested size.' ) );
508508
}
509509

0 commit comments

Comments
 (0)