Changeset 57917
- Timestamp:
- 04/03/2024 10:31:53 AM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-image-editor-gd.php
r57900 r57917 65 65 switch ( $mime_type ) { 66 66 case 'image/jpeg': 67 return ( $image_types & IMG_JPG ) != 0;67 return ( $image_types & IMG_JPG ) !== 0; 68 68 case 'image/png': 69 return ( $image_types & IMG_PNG ) != 0;69 return ( $image_types & IMG_PNG ) !== 0; 70 70 case 'image/gif': 71 return ( $image_types & IMG_GIF ) != 0;71 return ( $image_types & IMG_GIF ) !== 0; 72 72 case 'image/webp': 73 return ( $image_types & IMG_WEBP ) != 0;73 return ( $image_types & IMG_WEBP ) !== 0; 74 74 case 'image/avif': 75 return ( $image_types & IMG_AVIF ) != 0;75 return ( $image_types & IMG_AVIF ) !== 0; 76 76 } 77 77 … … 189 189 */ 190 190 public function resize( $max_w, $max_h, $crop = false ) { 191 if ( ( $this->size['width'] == $max_w ) && ( $this->size['height']== $max_h ) ) {191 if ( ( $this->size['width'] === $max_w ) && ( $this->size['height'] === $max_h ) ) { 192 192 return true; 193 193 }
Note: See TracChangeset
for help on using the changeset viewer.