From b4cfea6f4ef08982cfc20779d281ce35c7f27e41 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 6 Aug 2023 12:50:42 +0000 Subject: [PATCH] Coding Standards: Use strict comparison in `wp-includes/class-wp-image-editor.php`. Follow-up to [22094]. Props aristath, poena, afercia, SergeyBiryukov. See #58831. git-svn-id: https://develop.svn.wordpress.org/trunk@56361 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-image-editor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp-image-editor.php b/src/wp-includes/class-wp-image-editor.php index f4976da8e4..119d6e3bb0 100644 --- a/src/wp-includes/class-wp-image-editor.php +++ b/src/wp-includes/class-wp-image-editor.php @@ -353,7 +353,7 @@ abstract class WP_Image_Editor { * Check to see if specified mime-type is the same as type implied by * file extension. If so, prefer extension from file. */ - if ( ! $mime_type || ( $file_mime == $mime_type ) ) { + if ( ! $mime_type || ( $file_mime === $mime_type ) ) { $mime_type = $file_mime; $new_ext = $file_ext; }