Make WordPress Core

Ticket #17117: mime.patch

File mime.patch, 2.7 KB (added by mohanjith, 14 years ago)

Based on /etc/mime.types from Ubuntu 11.04

  • wp-includes/functions.php

     
    24292429                'video'       => array( 'asf', 'avi',  'divx', 'dv',   'flv',  'm4v',   'mkv', 'mov', 'mp4', 'mpeg', 'mpg', 'mpv', 'ogm', 'ogv', 'qt',  'rm', 'vob', 'wmv' ),
    24302430                'document'    => array( 'doc', 'docx', 'docm', 'dotm', 'odt',  'pages', 'pdf', 'rtf', 'wp',  'wpd' ),
    24312431                'spreadsheet' => array( 'numbers',     'ods',  'xls',  'xlsx', 'xlsb',  'xlsm' ),
    2432                 'interactive' => array( 'key', 'ppt',  'pptx', 'pptm', 'odp',  'swf' ),
     2432                'interactive' => array( 'key', 'ppt',  'pptx', 'pptm', 'odp',  'swf', 'sldx', 'sld', 'ppsx', 'pps' ),
    24332433                'text'        => array( 'asc', 'csv',  'tsv',  'txt' ),
    24342434                'archive'     => array( 'bz2', 'cab',  'dmg',  'gz',   'rar',  'sea',   'sit', 'sqx', 'tar', 'tgz',  'zip' ),
    24352435                'code'        => array( 'css', 'htm',  'html', 'php',  'js' ),
     
    25812581                'rtf' => 'application/rtf',
    25822582                'js' => 'application/javascript',
    25832583                'pdf' => 'application/pdf',
    2584                 'doc|docx' => 'application/msword',
    2585                 'pot|pps|ppt|pptx|ppam|pptm|sldm|ppsm|potm' => 'application/vnd.ms-powerpoint',
     2584                'doc' => 'application/msword',
     2585                'pot|pps|ppt|ppam|pptm|sldm|ppsm|potm' => 'application/vnd.ms-powerpoint',
    25862586                'wri' => 'application/vnd.ms-write',
    2587                 'xla|xls|xlsx|xlt|xlw|xlam|xlsb|xlsm|xltm' => 'application/vnd.ms-excel',
     2587                'xla|xls|xlt|xlw|xlam|xlsb|xlsm|xltm' => 'application/vnd.ms-excel',
    25882588                'mdb' => 'application/vnd.ms-access',
    25892589                'mpp' => 'application/vnd.ms-project',
    25902590                'docm|dotm' => 'application/vnd.ms-word',
    2591                 'pptx|sldx|ppsx|potx' => 'application/vnd.openxmlformats-officedocument.presentationml',
    2592                 'xlsx|xltx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml',
    2593                 'docx|dotx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml',
     2591                'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
     2592                'sldx' => 'application/vnd.openxmlformats-officedocument.presentationml.slide',
     2593                'ppsx' => 'application/vnd.openxmlformats-officedocument.presentationml.slideshow',
     2594                'potx' => 'application/vnd.openxmlformats-officedocument.presentationml.template',
     2595                'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
     2596                'xltx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.template',
     2597                'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
     2598                'dotx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.template',
    25942599                'onetoc|onetoc2|onetmp|onepkg' => 'application/onenote',
    25952600                'swf' => 'application/x-shockwave-flash',
    25962601                'class' => 'application/java',