Add .tsv file format to Upload whitelist. Fixes #12757
git-svn-id: http://svn.automattic.com/wordpress/trunk@14064 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b8d68f977d
commit
fbf39813dc
|
@ -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', 'csv' ),
|
||||
'text' => array( 'asc', 'csv', 'tsv', 'txt' ),
|
||||
'archive' => array( 'bz2', 'cab', 'dmg', 'gz', 'rar', 'sea', 'sit', 'sqx', 'tar', 'tgz', 'zip' ),
|
||||
'code' => array( 'css', 'html', 'php', 'js' ),
|
||||
));
|
||||
|
@ -2393,6 +2393,7 @@ function get_allowed_mime_types() {
|
|||
'mpeg|mpg|mpe' => 'video/mpeg',
|
||||
'txt|asc|c|cc|h' => 'text/plain',
|
||||
'csv' => 'text/csv',
|
||||
'tsv' => 'text/tab-separated-values',
|
||||
'rtx' => 'text/richtext',
|
||||
'css' => 'text/css',
|
||||
'htm|html' => 'text/html',
|
||||
|
|
Loading…
Reference in New Issue