mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
fix overuse of default mime icon and re-shuffle mp4/m4a file type matches. Props andy. see #5911
git-svn-id: https://develop.svn.wordpress.org/trunk@7045 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2390,9 +2390,8 @@ function wp_mime_type_icon( $mime = 0 ) {
|
||||
$post_mimes[] = str_replace('/', '_', $mime);
|
||||
}
|
||||
|
||||
$post_mimes[] = 'default';
|
||||
|
||||
$matches = wp_match_mime_types(array_keys($types), $post_mimes);
|
||||
$matches['default'] = array('default');
|
||||
|
||||
foreach ( $matches as $match => $wilds ) {
|
||||
if ( isset($types[$wilds[0]])) {
|
||||
|
||||
Reference in New Issue
Block a user