[wp-trac] [WordPress Trac] #18671: Allow themes to set default widgets

WordPress Trac wp-trac at lists.automattic.com
Sun Sep 16 13:24:25 UTC 2012


#18671: Allow themes to set default widgets
--------------------------+------------------------------
 Reporter:  Viper007Bond  |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Widgets       |     Version:  3.3
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |
--------------------------+------------------------------

Comment (by markoheijnen):

 Several months ago I wrote something this hacky class:
 https://gist.github.com/3110599. It's a little different approach.

 With this code you can register a widget to a sidebar by code. To have a
 class/function for this you can easily pass settings to a widget. If you
 do this with register_sidebar() it's getting a mess and complicated.

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


More information about the wp-trac mailing list