Make WordPress Core

Changeset 9662


Ignore:
Timestamp:
11/13/2008 03:17:26 PM (15 years ago)
Author:
azaozz
Message:

Add file upload support for MS Office 2007+ filetypes (docx pptx xlsx), props misterbisson, fixes #8194

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r9618 r9662  
    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'),
     
    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',
Note: See TracChangeset for help on using the changeset viewer.