mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +00:00
Revert accidentally committed bits
git-svn-id: http://svn.automattic.com/wordpress/trunk@10220 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8b4e4b5964
commit
dc24f08567
@ -2035,13 +2035,10 @@ function wp_check_filetype( $filename, $mimes = null ) {
|
|||||||
// Accepted MIME types are set here as PCRE unless provided.
|
// Accepted MIME types are set here as PCRE unless provided.
|
||||||
$mimes = ( is_array( $mimes ) ) ? $mimes : apply_filters( 'upload_mimes', array(
|
$mimes = ( is_array( $mimes ) ) ? $mimes : apply_filters( 'upload_mimes', array(
|
||||||
'jpg|jpeg|jpe' => 'image/jpeg',
|
'jpg|jpeg|jpe' => 'image/jpeg',
|
||||||
'jpeg' => 'image/jpeg',
|
|
||||||
'jpe' => 'image/jpeg',
|
|
||||||
'gif' => 'image/gif',
|
'gif' => 'image/gif',
|
||||||
'png' => 'image/png',
|
'png' => 'image/png',
|
||||||
'bmp' => 'image/bmp',
|
'bmp' => 'image/bmp',
|
||||||
'tif' => 'image/tiff',
|
'tif|tiff' => 'image/tiff',
|
||||||
'tiff' => 'image/tiff',
|
|
||||||
'ico' => 'image/x-icon',
|
'ico' => 'image/x-icon',
|
||||||
'asf|asx|wax|wmv|wmx' => 'video/asf',
|
'asf|asx|wax|wmv|wmx' => 'video/asf',
|
||||||
'avi' => 'video/avi',
|
'avi' => 'video/avi',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user