Make WordPress Core

Changeset 18751


Ignore:
Timestamp:
09/22/2011 08:29:35 AM (13 years ago)
Author:
westi
Message:

Add support for rar and 7x file uploading. Fixes #16412 props Caspie.

File:
1 edited

Legend:

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

    r18747 r18751  
    24332433        'interactive' => array( 'key', 'ppt',  'pptx', 'pptm', 'odp',  'swf' ),
    24342434        'text'        => array( 'asc', 'csv',  'tsv',  'txt' ),
    2435         'archive'     => array( 'bz2', 'cab',  'dmg',  'gz',   'rar',  'sea',   'sit', 'sqx', 'tar', 'tgz',  'zip' ),
     2435        'archive'     => array( 'bz2', 'cab',  'dmg',  'gz',   'rar',  'sea',   'sit', 'sqx', 'tar', 'tgz',  'zip', '7z' ),
    24362436        'code'        => array( 'css', 'htm',  'html', 'php',  'js' ),
    24372437    ));
     
    25992599        'zip' => 'application/zip',
    26002600        'gz|gzip' => 'application/x-gzip',
     2601        'rar' => 'application/rar',
     2602        '7z' => 'application/x-7z-compressed',
    26012603        'exe' => 'application/x-msdownload',
    26022604        // openoffice formats
Note: See TracChangeset for help on using the changeset viewer.