Ticket #12757: 12757.001.diff

File 12757.001.diff, 981 bytes (added by aaroncampbell, 3 years ago)

Support for tab separated files

Line 
1Index: wp-includes/functions.php
2===================================================================
3--- wp-includes/functions.php   (revision 14019)
4+++ wp-includes/functions.php   (working copy)
5@@ -2328,7 +2328,7 @@
6                'document'    => array( 'doc', 'docx', 'docm', 'dotm', 'odt',  'pages', 'pdf', 'rtf' ),
7                'spreadsheet' => array( 'numbers',     'ods',  'xls',  'xlsx', 'xlsb',  'xlsm' ),
8                'interactive' => array( 'key', 'ppt',  'pptx', 'pptm', 'odp',  'swf' ),
9-               'text'        => array( 'asc', 'txt', 'csv' ),
10+               'text'        => array( 'asc', 'txt', 'csv', 'tsv' ),
11                'archive'     => array( 'bz2', 'cab',  'dmg',  'gz',   'rar',  'sea',   'sit', 'sqx', 'tar', 'tgz',  'zip' ),
12                'code'        => array( 'css', 'html', 'php',  'js' ),
13        ));
14@@ -2393,6 +2393,7 @@
15                'mpeg|mpg|mpe' => 'video/mpeg',
16                'txt|asc|c|cc|h' => 'text/plain',
17                'csv' => 'text/csv',
18+               'tsv' => 'text/tsv',
19                'rtx' => 'text/richtext',
20                'css' => 'text/css',
21                'htm|html' => 'text/html',