Make WordPress Core

Changeset 29833


Ignore:
Timestamp:
10/03/2014 07:51:56 PM (10 years ago)
Author:
wonderboymusic
Message:

Allow PSDs (Photoshop documents) to be uploaded.

Props michalzuber, ccprice.
Fixes #28805.

File:
1 edited

Legend:

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

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