From 897531ee2731bbfe333d3f0df1eda39a3a74a630 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Thu, 23 Aug 2007 18:28:14 +0000 Subject: [PATCH] Allow upload of all Open Office document types props nbachiyski fixes #4615 git-svn-id: https://develop.svn.wordpress.org/trunk@5929 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 2b75c70ab2..fdbfefdf19 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1029,7 +1029,6 @@ function wp_check_filetype($filename, $mimes = null) { 'js' => 'application/javascript', 'pdf' => 'application/pdf', 'doc' => 'application/msword', - 'odt' => 'application/vnd.oasis.opendocument.text', 'pot|pps|ppt' => 'application/vnd.ms-powerpoint', 'wri' => 'application/vnd.ms-write', 'xla|xls|xlt|xlw' => 'application/vnd.ms-excel', @@ -1040,7 +1039,16 @@ function wp_check_filetype($filename, $mimes = null) { 'tar' => 'application/x-tar', 'zip' => 'application/zip', '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;