WordPress.org

Make WordPress Core

Changeset 50818


Ignore:
Timestamp:
05/06/2021 10:19:42 AM (7 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media.php

    r50815 r50818  
    50675067    $type   = false;
    50685068
    5069     if ( ! 'image/webp' === wp_get_image_mime( $filename ) ) {
     5069    if ( 'image/webp' !== wp_get_image_mime( $filename ) ) {
    50705070        return compact( 'width', 'height', 'type' );
    50715071    }
Note: See TracChangeset for help on using the changeset viewer.