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. Built from https://develop.svn.wordpress.org/trunk@51223 git-svn-id: http://core.svn.wordpress.org/trunk@50832 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -3300,13 +3300,6 @@ function get_allowed_mime_types( $user = null ) {
|
||||
unset( $t['htm|html'], $t['js'] );
|
||||
}
|
||||
|
||||
// Add WebP if the server supports it.
|
||||
unset( $t['webp'] );
|
||||
|
||||
if ( wp_image_editor_supports( array( 'mime_type' => 'image/webp' ) ) ) {
|
||||
$t['webp'] = 'image/webp';
|
||||
}
|
||||
|
||||
/**
|
||||
* Filters list of allowed mime types and file extensions.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user