WordPress.org

Make WordPress Core

Ticket #7225: 7225.diff

File 7225.diff, 2.0 KB (added by dd32, 10 years ago)
  • wp-includes/functions.php

     
    22242224        $ext2type = apply_filters('ext2type', array(
    22252225                'audio' => array('aac','ac3','aif','aiff','mp1','mp2','mp3','m3a','m4a','m4b','ogg','ram','wav','wma'),
    22262226                'video' => array('asf','avi','divx','dv','mov','mpg','mpeg','mp4','mpv','ogm','qt','rm','vob','wmv', 'm4v'),
    2227                 'document' => array('doc','docx','pages','odt','rtf','pdf'),
    2228                 'spreadsheet' => array('xls','xlsx','numbers','ods'),
    2229                 'interactive' => array('ppt','pptx','key','odp','swf'),
     2227                'document' => array('doc','docx','docm','dotm','pages','odt','rtf','pdf'),
     2228                'spreadsheet' => array('xls','xlsx','xlsb','xlsm','numbers','ods'),
     2229                'interactive' => array('ppt','pptx','pptm','key','odp','swf'),
    22302230                'text' => array('txt'),
    22312231                'archive' => array('tar','bz2','gz','cab','dmg','rar','sea','sit','sqx','zip'),
    22322232                'code' => array('css','html','php','js'),
     
    23052305                'js' => 'application/javascript',
    23062306                'pdf' => 'application/pdf',
    23072307                'doc|docx' => 'application/msword',
    2308                 'pot|pps|ppt|pptx' => 'application/vnd.ms-powerpoint',
     2308                'pot|pps|ppt|pptx|ppam|pptm|sldm|ppsm|potm' => 'application/vnd.ms-powerpoint',
    23092309                'wri' => 'application/vnd.ms-write',
    2310                 'xla|xls|xlsx|xlt|xlw' => 'application/vnd.ms-excel',
     2310                'xla|xls|xlsx|xlt|xlw|xlam|xlsb|xlsm|xltm' => 'application/vnd.ms-excel',
    23112311                'mdb' => 'application/vnd.ms-access',
    23122312                'mpp' => 'application/vnd.ms-project',
     2313                'docm|dotm' => 'application/vnd.ms-word',
     2314                'pptx|sldx|ppsx|potx' => 'application/vnd.openxmlformats-officedocument.presentationml',
     2315                'xlsx|xltx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml',
     2316                'docx|dotx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml',
     2317                'onetoc|onetoc2|onetmp|onepkg' => 'application/onenote',
    23132318                'swf' => 'application/x-shockwave-flash',
    23142319                'class' => 'application/java',
    23152320                'tar' => 'application/x-tar',