WordPress.org

Make WordPress Core

Ticket #5911: 5911-7.diff

File 5911-7.diff, 484 bytes (added by andy, 6 years ago)

fix overuse of default mime icon

  • wp-includes/post.php

     
    23902390                        $post_mimes[] = str_replace('/', '_', $mime); 
    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 ) { 
    23982397                        if ( isset($types[$wilds[0]])) {