Skip to content

Commit b4cfea6

Browse files
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
1 parent fd84653 commit b4cfea6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ protected function get_output_format( $filename = null, $mime_type = null ) {
353353
* Check to see if specified mime-type is the same as type implied by
354354
* file extension. If so, prefer extension from file.
355355
*/
356-
if ( ! $mime_type || ( $file_mime == $mime_type ) ) {
356+
if ( ! $mime_type || ( $file_mime === $mime_type ) ) {
357357
$mime_type = $file_mime;
358358
$new_ext = $file_ext;
359359
}

0 commit comments

Comments
 (0)