Make WordPress Core

Ticket #11519: functions.diff

File functions.diff, 1.3 KB (added by niallkennedy, 15 years ago)

add oga as a supported audio/ogg file extension. add support for ogg video.

  • functions.php

     
    22222222 */
    22232223function wp_ext2type( $ext ) {
    22242224        $ext2type = apply_filters('ext2type', array(
    2225                 'audio' => array('aac','ac3','aif','aiff','mp1','mp2','mp3','m3a','m4a','m4b','ogg','ram','wav','wma'),
    2226                 'video' => array('asf','avi','divx','dv','mov','mpg','mpeg','mp4','mpv','ogm','qt','rm','vob','wmv', 'm4v'),
     2225                'audio' => array('aac','ac3','aif','aiff','mp1','mp2','mp3','m3a','m4a','m4b','ogg','oga','ram','wav','wma'),
     2226                'video' => array('asf','avi','divx','dv','m4v','mov','mpg','mpeg','mp4','mpv','ogm','ogv','qt','rm','vob','wmv'),
    22272227                'document' => array('doc','docx','pages','odt','rtf','pdf'),
    22282228                'spreadsheet' => array('xls','xlsx','numbers','ods'),
    22292229                'interactive' => array('ppt','pptx','key','odp','swf'),
     
    22902290                'flv' => 'video/x-flv',
    22912291                'mov|qt' => 'video/quicktime',
    22922292                'mpeg|mpg|mpe' => 'video/mpeg',
     2293                'ogv' => 'video/ogg',
    22932294                'txt|c|cc|h' => 'text/plain',
    22942295                'rtx' => 'text/richtext',
    22952296                'css' => 'text/css',
     
    22982299                'mp4|m4v' => 'video/mp4',
    22992300                'ra|ram' => 'audio/x-realaudio',
    23002301                'wav' => 'audio/wav',
    2301                 'ogg' => 'audio/ogg',
     2302                'ogg|oga' => 'audio/ogg',
    23022303                'mid|midi' => 'audio/midi',
    23032304                'wma' => 'audio/wma',
    23042305                'rtf' => 'application/rtf',