Make WordPress Core


Ignore:
Timestamp:
02/09/2020 04:52:28 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use Yoda conditions where appropriate.

See #49222.

File:
1 edited

Legend:

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

    r47122 r47219  
    248248
    249249    // Do not scale (large) PNG images. May result in sub-sizes that have greater file size than the original. See #48736.
    250     if ( $imagesize['mime'] !== 'image/png' ) {
     250    if ( 'image/png' !== $imagesize['mime'] ) {
    251251
    252252        /**
     
    311311                // TODO: Log errors.
    312312            }
    313         } elseif ( ! empty( $exif_meta['orientation'] ) && (int) $exif_meta['orientation'] !== 1 ) {
     313        } elseif ( ! empty( $exif_meta['orientation'] ) && 1 !== (int) $exif_meta['orientation'] ) {
    314314            // Rotate the whole original image if there is EXIF data and "orientation" is not 1.
    315315
Note: See TracChangeset for help on using the changeset viewer.