mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-02-21 16:22:44 +00:00
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
This commit is contained in:
parent
fd846534b6
commit
b4cfea6f4e
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user