Make WordPress Core

Changeset 56361


Ignore:
Timestamp:
08/06/2023 12:50:42 PM (14 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in wp-includes/class-wp-image-editor.php.

Follow-up to [22094].

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-image-editor.php

    r56204 r56361  
    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;
Note: See TracChangeset for help on using the changeset viewer.