WordPress.org

Make WordPress Core

Changeset 31578


Ignore:
Timestamp:
02/27/2015 07:46:19 PM (6 years ago)
Author:
wonderboymusic
Message:

Support GIMP files in the Media Library. We already support Photoshop files.

Props MikeHansenMe.
Fixes #31146.

File:
1 edited

Legend:

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

    r31575 r31578  
    20202020        'audio'       => array( 'aac', 'ac3',  'aif',  'aiff', 'm3a',  'm4a',   'm4b',  'mka',  'mp1',  'mp2',  'mp3', 'ogg', 'oga', 'ram', 'wav', 'wma' ),
    20212021        'video'       => array( '3g2',  '3gp', '3gpp', 'asf', 'avi',  'divx', 'dv',   'flv',  'm4v',   'mkv',  'mov',  'mp4',  'mpeg', 'mpg', 'mpv', 'ogm', 'ogv', 'qt',  'rm', 'vob', 'wmv' ),
    2022         'document'    => array( 'doc', 'docx', 'docm', 'dotm', 'odt',  'pages', 'pdf',  'xps',  'oxps', 'rtf',  'wp', 'wpd', 'psd' ),
     2022        'document'    => array( 'doc', 'docx', 'docm', 'dotm', 'odt',  'pages', 'pdf',  'xps',  'oxps', 'rtf',  'wp', 'wpd', 'psd', 'xcf' ),
    20232023        'spreadsheet' => array( 'numbers',     'ods',  'xls',  'xlsx', 'xlsm',  'xlsb' ),
    20242024        'interactive' => array( 'swf', 'key',  'ppt',  'pptx', 'pptm', 'pps',   'ppsx', 'ppsm', 'sldx', 'sldm', 'odp' ),
     
    22282228    'exe' => 'application/x-msdownload',
    22292229    'psd' => 'application/octet-stream',
     2230    'xcf' => 'application/octet-stream',
    22302231    // MS Office formats.
    22312232    'doc' => 'application/msword',
Note: See TracChangeset for help on using the changeset viewer.