Make WordPress Core


Ignore:
Timestamp:
06/23/2021 10:19:54 PM (2 years ago)
Author:
iandunn
Message:

Media: Revert r51211 to restore ms-files.php assets.

r51211 accidentally introduced a fatal error for Multisite instances with ms_files_rewriting enabled. Reverting removes the error, and the original purpose of the commit can be solved in another way.

Props otto42, barry, ryelle, azaozz.
Fixes #53492. See #53475.

File:
1 edited

Legend:

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

    r51211 r51223  
    33013301    }
    33023302
    3303     // Add WebP if the server supports it.
    3304     unset( $t['webp'] );
    3305 
    3306     if ( wp_image_editor_supports( array( 'mime_type' => 'image/webp' ) ) ) {
    3307         $t['webp'] = 'image/webp';
    3308     }
    3309 
    33103303    /**
    33113304     * Filters list of allowed mime types and file extensions.
Note: See TracChangeset for help on using the changeset viewer.