WordPress.org

Make WordPress Core

Ticket #8194: ms-office-2007-extensions.diff

File ms-office-2007-extensions.diff, 1.5 KB (added by misterbisson, 10 years ago)
  • functions.php

     
    19951995        $ext2type = apply_filters('ext2type', array(
    19961996                'audio' => array('aac','ac3','aif','aiff','mp1','mp2','mp3','m3a','m4a','m4b','ogg','ram','wav','wma'),
    19971997                'video' => array('asf','avi','divx','dv','mov','mpg','mpeg','mp4','mpv','ogm','qt','rm','vob','wmv'),
    1998                 'document' => array('doc','pages','odt','rtf','pdf'),
    1999                 'spreadsheet' => array('xls','numbers','ods'),
    2000                 'interactive' => array('ppt','key','odp','swf'),
     1998                'document' => array('doc','docx','pages','odt','rtf','pdf'),
     1999                'spreadsheet' => array('xls','xlsx','numbers','ods'),
     2000                'interactive' => array('ppt','pptx','key','odp','swf'),
    20012001                'text' => array('txt'),
    20022002                'archive' => array('tar','bz2','gz','cab','dmg','rar','sea','sit','sqx','zip'),
    20032003                'code' => array('css','html','php','js'),
     
    20442044                'rtf' => 'application/rtf',
    20452045                'js' => 'application/javascript',
    20462046                'pdf' => 'application/pdf',
    2047                 'doc' => 'application/msword',
    2048                 'pot|pps|ppt' => 'application/vnd.ms-powerpoint',
     2047                'doc|docx' => 'application/msword',
     2048                'pot|pps|ppt|pptx' => 'application/vnd.ms-powerpoint',
    20492049                'wri' => 'application/vnd.ms-write',
    2050                 'xla|xls|xlt|xlw' => 'application/vnd.ms-excel',
     2050                'xla|xls|xlsx|xlt|xlw' => 'application/vnd.ms-excel',
    20512051                'mdb' => 'application/vnd.ms-access',
    20522052                'mpp' => 'application/vnd.ms-project',
    20532053                'swf' => 'application/x-shockwave-flash',