WordPress.org

Make WordPress Core

Ticket #4615: opendocuments-upload.diff

File opendocuments-upload.diff, 1.2 KB (added by nbachiyski, 11 years ago)
  • wp-includes/functions.php

     
    10021002                'js' => 'application/javascript',
    10031003                'pdf' => 'application/pdf',
    10041004                'doc' => 'application/msword',
    1005                 'odt' => 'application/vnd.oasis.opendocument.text',
    10061005                'pot|pps|ppt' => 'application/vnd.ms-powerpoint',
    10071006                'wri' => 'application/vnd.ms-write',
    10081007                'xla|xls|xlt|xlw' => 'application/vnd.ms-excel',
     
    10131012                'tar' => 'application/x-tar',
    10141013                'zip' => 'application/zip',
    10151014                'gz|gzip' => 'application/x-gzip',
    1016                 'exe' => 'application/x-msdownload'
     1015                'exe' => 'application/x-msdownload',
     1016                # openoffice formats
     1017                'odt' => 'application/vnd.oasis.opendocument.text',
     1018                'odp' => 'application/vnd.oasis.opendocument.presentation',
     1019                'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
     1020                'odg' => 'application/vnd.oasis.opendocument.graphics',
     1021                'odc' => 'application/vnd.oasis.opendocument.chart',
     1022                'odb' => 'application/vnd.oasis.opendocument.database',
     1023                'odf' => 'application/vnd.oasis.opendocument.formula',
     1024
    10171025        ));
    10181026
    10191027        $type = false;