Coding Standards: Revert [57899] pending test failure investigation.

See #60700.
Built from https://develop.svn.wordpress.org/trunk@57900


git-svn-id: http://core.svn.wordpress.org/trunk@57401 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2024-03-30 00:46:11 +00:00
parent 053fbef212
commit d1ea7a0723
2 changed files with 7 additions and 7 deletions

View File

@ -64,15 +64,15 @@ class WP_Image_Editor_GD extends WP_Image_Editor {
$image_types = imagetypes(); $image_types = imagetypes();
switch ( $mime_type ) { switch ( $mime_type ) {
case 'image/jpeg': case 'image/jpeg':
return ( $image_types & IMG_JPG ) !== 0; return ( $image_types & IMG_JPG ) != 0;
case 'image/png': case 'image/png':
return ( $image_types & IMG_PNG ) !== 0; return ( $image_types & IMG_PNG ) != 0;
case 'image/gif': case 'image/gif':
return ( $image_types & IMG_GIF ) !== 0; return ( $image_types & IMG_GIF ) != 0;
case 'image/webp': case 'image/webp':
return ( $image_types & IMG_WEBP ) !== 0; return ( $image_types & IMG_WEBP ) != 0;
case 'image/avif': case 'image/avif':
return ( $image_types & IMG_AVIF ) !== 0; return ( $image_types & IMG_AVIF ) != 0;
} }
return false; return false;
@ -188,7 +188,7 @@ class WP_Image_Editor_GD extends WP_Image_Editor {
* @return true|WP_Error * @return true|WP_Error
*/ */
public function resize( $max_w, $max_h, $crop = false ) { public function resize( $max_w, $max_h, $crop = false ) {
if ( ( $this->size['width'] === $max_w ) && ( $this->size['height'] === $max_h ) ) { if ( ( $this->size['width'] == $max_w ) && ( $this->size['height'] == $max_h ) ) {
return true; return true;
} }

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.6-alpha-57899'; $wp_version = '6.6-alpha-57900';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.