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
This commit is contained in:
parent
af4b043a69
commit
8b18915601
|
@ -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' );
|
||||
}
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue