diff --git a/wp-includes/class-wp-image-editor-imagick.php b/wp-includes/class-wp-image-editor-imagick.php index 19e168edb0..2d9d52f757 100644 --- a/wp-includes/class-wp-image-editor-imagick.php +++ b/wp-includes/class-wp-image-editor-imagick.php @@ -204,9 +204,8 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor { break; case 'image/webp': $webp_info = wp_get_webp_info( $this->file ); - $type = $webp_info['type']; - if ( $type && 'lossy' === $type ) { + if ( 'lossy' === $webp_info['type'] ) { $this->image->setImageCompressionQuality( $quality ); } else { // Use WebP lossless settings. diff --git a/wp-includes/version.php b/wp-includes/version.php index 5746151c0c..59e2c12cb2 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-alpha-50820'; +$wp_version = '5.8-alpha-50821'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.