ericmann/WP-Publication-Archive — comment on commit 904d779cb262498e2ba9247ec34b4e1586974c93
File:  line 0
By JacobDorman:

Hi, bit new to github so not sure if this is the right place to post?

I just downloaded 2.3.4 and saw the thumbnail support added. I had already added this in my local repo using the existing 'featured image' functionality.
Just wondering what the advantages/disadvantages with the different approaches are?

I attempted to make a diff of the changes.
http://dl.dropbox.com/u/3209649/thumbnail-support.diff

A better version of the get_the_thumbnail function than I have there:

public function get_the_thumbnail() {
$before = '

';
$after = '

';

$thumb = $this->thumbnail;

if($thumb){
$image	= wp_get_attachment_image_src($thumb, 'full'	, true);

if($thumb) $image	= @vt_resize( $thumb, '', 125, 125, 'false' );

return $before . '' . $after;
}
else return '';
}