[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
Sun May 3 00:47:19 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 Denis-de-Bernardy):

 seems extraordinarily complex. in my own plugins, I usually have a
 function around that goes:


 {{{
 function my_widget($instance = array()) {
   $args = array('before_widget' => '<div>', 'after_widget' => '</div>',
 etc.);
   my_widget::widget($args, $instance);
 }
 }}}

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


More information about the wp-trac mailing list