Widget item filter hook

Hi Matt,

I have added a filter hook to the most popular items widget. This way i can amend output in my theme if need be.

As an example i'm using it like so to output post thumbnail amongst other things:

function theme_most_popular_item_output($item_output, $post_id, $title, $post_class, $permalink){
  $item_output = '<li class="' . $post_classes . '"><a href="' . $permalink . '" title="' . $title . '">';
  $item_output .= get_the_post_thumbnail($post_id, 'top_spots', array('class'  => "media-object pull-left"));
  $item_output .= '<span class="media-body">';
  $item_output .= '<h5 class="media-heading">' . $title . '</h5>';
  $item_output .= '<time class="published" datetime="' . get_the_time('c') . '">' . get_the_date() . '</time>';
  $item_output .= '</span></a></li>';
  return $item_output;
}
add_filter('wp_most_popular_item_output', 'theme_most_popular_item_output', 10, 5);

Would be great to here your thoughts

Cheers

Chris