Make WordPress Core

Changeset 7045


Ignore:
Timestamp:
02/26/2008 07:57:00 PM (17 years ago)
Author:
ryan
Message:

fix overuse of default mime icon and re-shuffle mp4/m4a file type matches. Props andy. see #5911

Location:
trunk/wp-includes
Files:
2 edited

Legend:

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

    r7038 r7045  
    11891189        'avi' => 'video/avi',
    11901190        'mov|qt' => 'video/quicktime',
    1191         'mpeg|mpg|mpe' => 'video/mpeg',
     1191        'mpeg|mpg|mpe|mp4' => 'video/mpeg',
    11921192        'txt|c|cc|h' => 'text/plain',
    11931193        'rtx' => 'text/richtext',
    11941194        'css' => 'text/css',
    11951195        'htm|html' => 'text/html',
    1196         'mp3|mp4' => 'audio/mpeg',
     1196        'mp3|m4a' => 'audio/mpeg',
    11971197        'ra|ram' => 'audio/x-realaudio',
    11981198        'wav' => 'audio/wav',
  • trunk/wp-includes/post.php

    r7042 r7045  
    23912391        }
    23922392
    2393         $post_mimes[] = 'default';
    2394 
    23952393        $matches = wp_match_mime_types(array_keys($types), $post_mimes);
     2394        $matches['default'] = array('default');
    23962395
    23972396        foreach ( $matches as $match => $wilds ) {
Note: See TracChangeset for help on using the changeset viewer.