From d1b96a8e044d8248d0e4c72b791a793a8382aed6 Mon Sep 17 00:00:00 2001 From: danielbachhuber Date: Wed, 8 Feb 2023 20:51:21 +0000 Subject: [PATCH] Media: Use strict comparison in `make_subsize()`. Follow up from [55278]. Props bueltge, desrosj, mukesh27. See #57370. Built from https://develop.svn.wordpress.org/trunk@55300 git-svn-id: http://core.svn.wordpress.org/trunk@54833 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-image-editor-imagick.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-image-editor-imagick.php b/wp-includes/class-wp-image-editor-imagick.php index ee12b401d9..40e3cbb823 100644 --- a/wp-includes/class-wp-image-editor-imagick.php +++ b/wp-includes/class-wp-image-editor-imagick.php @@ -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.' ) ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index e1aca018ca..d80aa669d7 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-beta1-55299'; +$wp_version = '6.2-beta1-55300'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.