From 46676b40606df9d703447ac1ebef574115ab9122 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 6 Apr 2024 13:37:18 +0000 Subject: [PATCH] Coding Standards: Use strict comparison in `wp-includes/class-wp-image-editor-imagick.php`. Follow-up to [22094]. Props aristath, poena, afercia, SergeyBiryukov. See #60700. Built from https://develop.svn.wordpress.org/trunk@57934 git-svn-id: http://core.svn.wordpress.org/trunk@57435 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 5de01d7322..d38ee6fd63 100644 --- a/wp-includes/class-wp-image-editor-imagick.php +++ b/wp-includes/class-wp-image-editor-imagick.php @@ -342,7 +342,7 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor { * @return true|WP_Error */ public function resize( $max_w, $max_h, $crop = false ) { - if ( ( $this->size['width'] == $max_w ) && ( $this->size['height'] == $max_h ) ) { + if ( ( $this->size['width'] === $max_w ) && ( $this->size['height'] === $max_h ) ) { return true; } diff --git a/wp-includes/version.php b/wp-includes/version.php index cd1ce624a5..bca4b74c3c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.6-alpha-57933'; +$wp_version = '6.6-alpha-57934'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.