[wp-trac] Re: [WordPress Trac] #9701: Add a the_widget() function to output a generic widget anywhere in a template

WordPress Trac wp-trac at lists.automattic.com
Wed May 13 21:03:32 GMT 2009


#9701: Add a the_widget() function to output a generic widget anywhere in a
template
-------------------------------------------+--------------------------------
 Reporter:  Viper007Bond                   |        Owner:  azaozz
     Type:  feature request                |       Status:  closed
 Priority:  low                            |    Milestone:  2.8   
Component:  Widgets                        |      Version:  2.8   
 Severity:  minor                          |   Resolution:  fixed 
 Keywords:  has-patch tested dev-feedback  |  
-------------------------------------------+--------------------------------

Comment(by azaozz):

 Replying to [comment:22 Denis-de-Bernardy]:
 > both options are valid I think. it can safely be assumed that, if the
 user wants a specific class, he'll add it.

 Yes, exactly. No need to
 {{{
 sprintf('<div class="my-custom-class">',
 $widget_obj->widget_options['classname']);
 }}}

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


More information about the wp-trac mailing list