Add ODT to allowed file types. Props Nazgul. fixes #4136
git-svn-id: http://svn.automattic.com/wordpress/trunk@5304 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1194,6 +1194,7 @@ function wp_check_filetype($filename, $mimes = null) {
|
|||||||
'js' => 'application/javascript',
|
'js' => 'application/javascript',
|
||||||
'pdf' => 'application/pdf',
|
'pdf' => 'application/pdf',
|
||||||
'doc' => 'application/msword',
|
'doc' => 'application/msword',
|
||||||
|
'odt' => 'application/vnd.oasis.opendocument.text',
|
||||||
'pot|pps|ppt' => 'application/vnd.ms-powerpoint',
|
'pot|pps|ppt' => 'application/vnd.ms-powerpoint',
|
||||||
'wri' => 'application/vnd.ms-write',
|
'wri' => 'application/vnd.ms-write',
|
||||||
'xla|xls|xlt|xlw' => 'application/vnd.ms-excel',
|
'xla|xls|xlt|xlw' => 'application/vnd.ms-excel',
|
||||||
|
|||||||
Reference in New Issue
Block a user