WordPress.org

Make WordPress Core

Ticket #17262: 17262.diff

File 17262.diff, 597 bytes (added by lonnylot, 9 years ago)

wp-includes/post.php diff

  • post.php

     
    38823882
    38833883        $file = get_attached_file( $post->ID );
    38843884
    3885         if ( !empty($imagedata['thumb']) && ($thumbfile = str_replace(basename($file), $imagedata['thumb'], $file)) && file_exists($thumbfile) )
     3885        if ( !empty($imagedata['thumbnail']) && ($thumbfile = str_replace(basename($file), $imagedata['thumbnail'], $file)) && file_exists($thumbfile) )
    38863886                return apply_filters( 'wp_get_attachment_thumb_file', $thumbfile, $post->ID );
    38873887        return false;
    38883888}