| 1 | Index: wp-includes/functions.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-includes/functions.php (revision 5796) |
|---|
| 4 | +++ wp-includes/functions.php (working copy) |
|---|
| 5 | @@ -1002,7 +1002,6 @@ |
|---|
| 6 | 'js' => 'application/javascript', |
|---|
| 7 | 'pdf' => 'application/pdf', |
|---|
| 8 | 'doc' => 'application/msword', |
|---|
| 9 | - 'odt' => 'application/vnd.oasis.opendocument.text', |
|---|
| 10 | 'pot|pps|ppt' => 'application/vnd.ms-powerpoint', |
|---|
| 11 | 'wri' => 'application/vnd.ms-write', |
|---|
| 12 | 'xla|xls|xlt|xlw' => 'application/vnd.ms-excel', |
|---|
| 13 | @@ -1013,7 +1012,16 @@ |
|---|
| 14 | 'tar' => 'application/x-tar', |
|---|
| 15 | 'zip' => 'application/zip', |
|---|
| 16 | 'gz|gzip' => 'application/x-gzip', |
|---|
| 17 | - 'exe' => 'application/x-msdownload' |
|---|
| 18 | + 'exe' => 'application/x-msdownload', |
|---|
| 19 | + # openoffice formats |
|---|
| 20 | + 'odt' => 'application/vnd.oasis.opendocument.text', |
|---|
| 21 | + 'odp' => 'application/vnd.oasis.opendocument.presentation', |
|---|
| 22 | + 'ods' => 'application/vnd.oasis.opendocument.spreadsheet', |
|---|
| 23 | + 'odg' => 'application/vnd.oasis.opendocument.graphics', |
|---|
| 24 | + 'odc' => 'application/vnd.oasis.opendocument.chart', |
|---|
| 25 | + 'odb' => 'application/vnd.oasis.opendocument.database', |
|---|
| 26 | + 'odf' => 'application/vnd.oasis.opendocument.formula', |
|---|
| 27 | + |
|---|
| 28 | )); |
|---|
| 29 | |
|---|
| 30 | $type = false; |
|---|