[wp-trac] [WordPress Trac] #10612: Extract recent comments code out of the widget

WordPress Trac wp-trac at lists.automattic.com
Fri Aug 14 23:38:52 UTC 2009


#10612: Extract recent comments code out of the widget
--------------------------+-------------------------------------------------
 Reporter:  Viper007Bond  |       Owner:             
     Type:  enhancement   |      Status:  new        
 Priority:  normal        |   Milestone:  Unassigned 
Component:  Template      |     Version:  2.9        
 Severity:  minor         |    Keywords:  needs-patch
--------------------------+-------------------------------------------------

Comment(by Viper007Bond):

 Replying to [comment:1 azaozz]:
 > Perhaps have a look at `the_widget($widget, $instance = array(), $args =
 array())`. It would output an instance of a widget. For recent comments it
 would be `the_widget( 'WP_Widget_Recent_Comments' );`.

 I had briefly thought about trying to get the widget run on it's own, but
 then I thought it wouldn't work due to settings, etc.

 Good to know (I ended up using a plugin). Thanks!

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10612#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list