Allow .csv. fixes #12757

git-svn-id: http://svn.automattic.com/wordpress/trunk@13962 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-04-03 08:24:13 +00:00
parent 927a8afbf3
commit 90e50f7e37
1 changed files with 2 additions and 1 deletions

View File

@ -2328,7 +2328,7 @@ function wp_ext2type( $ext ) {
'document' => array( 'doc', 'docx', 'docm', 'dotm', 'odt', 'pages', 'pdf', 'rtf' ),
'spreadsheet' => array( 'numbers', 'ods', 'xls', 'xlsx', 'xlsb', 'xlsm' ),
'interactive' => array( 'key', 'ppt', 'pptx', 'pptm', 'odp', 'swf' ),
'text' => array( 'asc', 'txt' ),
'text' => array( 'asc', 'txt', 'csv' ),
'archive' => array( 'bz2', 'cab', 'dmg', 'gz', 'rar', 'sea', 'sit', 'sqx', 'tar', 'tgz', 'zip' ),
'code' => array( 'css', 'html', 'php', 'js' ),
));
@ -2392,6 +2392,7 @@ function get_allowed_mime_types() {
'mov|qt' => 'video/quicktime',
'mpeg|mpg|mpe' => 'video/mpeg',
'txt|asc|c|cc|h' => 'text/plain',
'csv' => 'text/csv',
'rtx' => 'text/richtext',
'css' => 'text/css',
'htm|html' => 'text/html',