WordPress.org

Make WordPress Core

Ticket #10050: 10050.diff

File 10050.diff, 491 bytes (added by dd32, 6 years ago)
  • wp-includes/media.php

     
    503503        if ( $image = image_downsize($attachment_id, $size) ) 
    504504                return $image; 
    505505 
     506        $src = false; 
     507 
    506508        if ( $icon && $src = wp_mime_type_icon($attachment_id) ) { 
    507509                $icon_dir = apply_filters( 'icon_dir', ABSPATH . WPINC . '/images/crystal' ); 
    508510                $src_file = $icon_dir . '/' . basename($src);