diff --git src/wp-includes/functions.php src/wp-includes/functions.php
index d4af13f..03508e8 100644
|
|
function wp_get_mime_types() { |
2491 | 2491 | '3gp|3gpp' => 'video/3gpp', // Can also be audio |
2492 | 2492 | '3g2|3gp2' => 'video/3gpp2', // Can also be audio |
2493 | 2493 | // Text formats. |
2494 | | 'txt|asc|c|cc|h|srt' => 'text/plain', |
| 2494 | 'txt|asc|c|cc|h|srt|csv' => 'text/plain', |
2495 | 2495 | 'csv' => 'text/csv', |
2496 | 2496 | 'tsv' => 'text/tab-separated-values', |
2497 | 2497 | 'ics' => 'text/calendar', |
diff --git tests/phpunit/data/uploads/sample.csv tests/phpunit/data/uploads/sample.csv
new file mode 100644
index 0000000..8e038b3
-
|
+
|
|
| 1 | "country","country group","name (en)","name (fr)","name (de)","latitude","longitude" |
| 2 | "at","eu","Austria","Autriche","Österreich","47.6965545","13.34598005" |
| 3 | "be","eu","Belgium","Belgique","Belgien","50.501045","4.47667405" |
| 4 | "bg","eu","Bulgaria","Bulgarie","Bulgarien","42.72567375","25.4823218" |
diff --git tests/phpunit/tests/functions.php tests/phpunit/tests/functions.php
index 9a1aef0..d2b884c 100644
|
|
class Tests_Functions extends WP_UnitTestCase { |
1185 | 1185 | 'proper_filename' => false, |
1186 | 1186 | ), |
1187 | 1187 | ), |
| 1188 | // CSV file. |
| 1189 | array( |
| 1190 | DIR_TESTDATA . '/uploads/sample.csv', |
| 1191 | 'sample.csv', |
| 1192 | array( |
| 1193 | 'ext' => 'csv', |
| 1194 | 'type' => 'text/plain', |
| 1195 | 'proper_filename' => false, |
| 1196 | ), |
| 1197 | ), |
1188 | 1198 | ) ); |
1189 | 1199 | } |
1190 | 1200 | |