Skip to content

Commit

Permalink
Coding Standards: Use strict comparison in `wp-includes/class-wp-imag…
Browse files Browse the repository at this point in the history
…e-editor-imagick.php`.

Follow-up to [22094].

Props aristath, poena, afercia, SergeyBiryukov.
See #60700.

git-svn-id: https://develop.svn.wordpress.org/trunk@57934 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Apr 6, 2024
1 parent 50b31d9 commit f216440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wp-includes/class-wp-image-editor-imagick.php
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ public static function set_imagick_time_limit() {
* @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;
}

Expand Down

0 comments on commit f216440

Please sign in to comment.