Make WordPress Core

Changeset 28372


Ignore:
Timestamp:
05/11/2014 07:18:06 AM (10 years ago)
Author:
wonderboymusic
Message:

Add xps and oxps extensions to list of supported document types.

More: http://en.wikipedia.org/wiki/Open_XML_Paper_Specification

Fixes #15697.

File:
1 edited

Legend:

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

    r28325 r28372  
    19221922        'audio'       => array( 'aac', 'ac3',  'aif',  'aiff', 'm3a',  'm4a',   'm4b',  'mka',  'mp1',  'mp2',  'mp3', 'ogg', 'oga', 'ram', 'wav', 'wma' ),
    19231923        'video'       => array( 'asf', 'avi',  'divx', 'dv',   'flv',  'm4v',   'mkv',  'mov',  'mp4',  'mpeg', 'mpg', 'mpv', 'ogm', 'ogv', 'qt',  'rm', 'vob', 'wmv' ),
    1924         'document'    => array( 'doc', 'docx', 'docm', 'dotm', 'odt',  'pages', 'pdf',  'rtf',  'wp',   'wpd' ),
     1924        'document'    => array( 'doc', 'docx', 'docm', 'dotm', 'odt',  'pages', 'pdf',  'xps',  'oxps', 'rtf',  'wp',   'wpd' ),
    19251925        'spreadsheet' => array( 'numbers',     'ods',  'xls',  'xlsx', 'xlsm',  'xlsb' ),
    19261926        'interactive' => array( 'swf', 'key',  'ppt',  'pptx', 'pptm', 'pps',   'ppsx', 'ppsm', 'sldx', 'sldm', 'odp' ),
     
    21482148    'sldm' => 'application/vnd.ms-powerpoint.slide.macroEnabled.12',
    21492149    'onetoc|onetoc2|onetmp|onepkg' => 'application/onenote',
     2150    'oxps' => 'application/oxps',
     2151    'xps' => 'application/vnd.ms-xpsdocument',
    21502152    // OpenOffice formats
    21512153    'odt' => 'application/vnd.oasis.opendocument.text',
Note: See TracChangeset for help on using the changeset viewer.