mirror of
git://develop.git.wordpress.org/
synced 2025-03-11 23:49:54 +01:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@50818 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
970f904de5
commit
784a0cd87a
@ -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' );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user