Make WordPress Core

Ticket #16412: 16412.diff

File 16412.diff, 1.0 KB (added by Caspie, 14 years ago)

the possible patch

  • functions.php

     
    23602360                'spreadsheet' => array( 'numbers',     'ods',  'xls',  'xlsx', 'xlsb',  'xlsm' ),
    23612361                'interactive' => array( 'key', 'ppt',  'pptx', 'pptm', 'odp',  'swf' ),
    23622362                'text'        => array( 'asc', 'csv',  'tsv',  'txt' ),
    2363                 'archive'     => array( 'bz2', 'cab',  'dmg',  'gz',   'rar',  'sea',   'sit', 'sqx', 'tar', 'tgz',  'zip' ),
     2363                'archive'     => array( 'bz2', 'cab',  'dmg',  'gz',   'rar',  'sea',   'sit', 'sqx', 'tar', 'tgz',  'zip', '7z' ),
    23642364                'code'        => array( 'css', 'htm',  'html', 'php',  'js' ),
    23652365        ));
    23662366        foreach ( $ext2type as $type => $exts )
     
    25252525                'tar' => 'application/x-tar',
    25262526                'zip' => 'application/zip',
    25272527                'gz|gzip' => 'application/x-gzip',
     2528                'rar' => 'application/rar',
     2529                '7z' => 'application/x-7z-compressed',
    25282530                'exe' => 'application/x-msdownload',
    25292531                // openoffice formats
    25302532                'odt' => 'application/vnd.oasis.opendocument.text',