Allow upload of all Open Office document types props nbachiyski fixes #4615
git-svn-id: http://svn.automattic.com/wordpress/trunk@5929 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8047b60291
commit
31992bac0d
|
@ -1029,7 +1029,6 @@ 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',
|
||||||
|
@ -1040,7 +1039,16 @@ function wp_check_filetype($filename, $mimes = null) {
|
||||||
'tar' => 'application/x-tar',
|
'tar' => 'application/x-tar',
|
||||||
'zip' => 'application/zip',
|
'zip' => 'application/zip',
|
||||||
'gz|gzip' => 'application/x-gzip',
|
'gz|gzip' => 'application/x-gzip',
|
||||||
'exe' => 'application/x-msdownload'
|
'exe' => 'application/x-msdownload',
|
||||||
|
// openoffice formats
|
||||||
|
'odt' => 'application/vnd.oasis.opendocument.text',
|
||||||
|
'odp' => 'application/vnd.oasis.opendocument.presentation',
|
||||||
|
'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
|
||||||
|
'odg' => 'application/vnd.oasis.opendocument.graphics',
|
||||||
|
'odc' => 'application/vnd.oasis.opendocument.chart',
|
||||||
|
'odb' => 'application/vnd.oasis.opendocument.database',
|
||||||
|
'odf' => 'application/vnd.oasis.opendocument.formula',
|
||||||
|
|
||||||
));
|
));
|
||||||
|
|
||||||
$type = false;
|
$type = false;
|
||||||
|
|
Loading…
Reference in New Issue