From 8b189156012c1a5ba6bf0c12a2395ad823524605 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 6 May 2021 10:21:01 +0000 Subject: [PATCH] Media: Correct an early return condition in `wp_get_webp_info()`. Previously, this would only have evaluated to `true` if `wp_get_image_mime()` returned `false`. Follow-up to [50810], [50814], [50815]. See #35725. Built from https://develop.svn.wordpress.org/trunk@50818 git-svn-id: http://core.svn.wordpress.org/trunk@50427 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/media.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/media.php b/wp-includes/media.php index f799ba109e..037b4dfebe 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -5066,7 +5066,7 @@ function wp_get_webp_info( $filename ) { $height = false; $type = false; - if ( ! 'image/webp' === wp_get_image_mime( $filename ) ) { + if ( 'image/webp' !== wp_get_image_mime( $filename ) ) { return compact( 'width', 'height', 'type' ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 8fbf6315da..3a8f51dd4d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-alpha-50817'; +$wp_version = '5.8-alpha-50818'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.