Ticket #10492: wp_get_attachment_thumb_file.diff
File wp_get_attachment_thumb_file.diff, 811 bytes (added by , 15 years ago) |
---|
-
Users/simon/Projects/StephenFry/site/wordpress/wp-includes/post.php
2721 2721 2722 2722 $file = get_attached_file( $post->ID ); 2723 2723 2724 if ( !empty($imagedata[' thumb']) && ($thumbfile = str_replace(basename($file), $imagedata['thumb'], $file)) && file_exists($thumbfile) )2724 if ( !empty($imagedata['sizes']['thumbnail']['file']) && ($thumbfile = str_replace(basename($file), $imagedata['sizes']['thumbnail']['file'], $file)) && file_exists($thumbfile) ) 2725 2725 return apply_filters( 'wp_get_attachment_thumb_file', $thumbfile, $post->ID ); 2726 2726 return false; 2727 2727 }