[wp-trac] Re: [WordPress Trac] #9701: Pull the "Recent Comments" code out of the widget and into it's own function

WordPress Trac wp-trac at lists.automattic.com
Sat May 2 11:57:39 GMT 2009


#9701: Pull the "Recent Comments" code out of the widget and into it's own
function
--------------------------+-------------------------------------------------
 Reporter:  Viper007Bond  |       Owner:                
     Type:  enhancement   |      Status:  new           
 Priority:  normal        |   Milestone:  Future Release
Component:  Widgets       |     Version:  2.8           
 Severity:  normal        |    Keywords:  needs-patch   
--------------------------+-------------------------------------------------

Comment(by hakre):

 Wouldn't it be nice to have a function in the global namespace to display
 any widget with it's options passed by an array? like so

 {{{
 $name    = 'Recent Comments';
 $options = array('title' => 'The 20 most Recent Comments', 'number' =>
 20);
 display_widget($name, $options);
 }}}

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


More information about the wp-trac mailing list