WordPress.org

Make WordPress Core

Ticket #11981: post-template-icon_dir-fix.diff

File post-template-icon_dir-fix.diff, 570 bytes (added by chrisbliss18, 4 years ago)
  • wp-includes/post-template.php

     
    10091009        } elseif ( $src = wp_mime_type_icon( $post->ID ) ) { 
    10101010                // No thumb, no image. We'll look for a mime-related icon instead. 
    10111011 
    1012                 $icon_dir = apply_filters( 'icon_dir', get_template_directory() . '/images' ); 
     1012                $icon_dir = apply_filters( 'icon_dir', ABSPATH . WPINC . '/images/crystal' ); 
    10131013                $src_file = $icon_dir . '/' . basename($src); 
    10141014        }