Make WordPress Core

Changeset 55300


Ignore:
Timestamp:
02/08/2023 08:49:36 PM (17 months ago)
Author:
danielbachhuber
Message:

Media: Use strict comparison in make_subsize().

Follow up from [55278].

Props bueltge, desrosj, mukesh27.
See #57370.

File:
1 edited

Legend:

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

    r55278 r55300  
    504504        }
    505505
    506         if ( ( $this->size['width'] == $size_data['width'] ) && ( $this->size['height'] == $size_data['height'] ) ) {
     506        if ( ( $this->size['width'] === $size_data['width'] ) && ( $this->size['height'] === $size_data['height'] ) ) {
    507507            return new WP_Error( 'image_subsize_create_error', __( 'The image already has the requested size.' ) );
    508508        }
Note: See TracChangeset for help on using the changeset viewer.