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

WordPress Trac wp-trac at lists.automattic.com
Sat Sep 15 17:06:37 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   |
--------------------------+------------------------------
Changes (by ryanduff):

 * cc: ryan@… (added)


Comment:

 Definitely something that's needed. I see a use case for this with
 multisite installs where rolling out a new site should get a default set
 of widgets. Core basically updates the options table with a serialized
 array, while it can be duplicated, it's certainly not ideal.

 It's something I'd like to jumpstart for 3.6 since it's too late to
 accomplish in the 3.5 cycle. Any core devs want to suggest an ideal
 approach to this before I start working on a patch?

 Maybe something as simple as adding a 'contains' parameter to
 register_sidebar() which would include an array of widget names? That's
 one of the options Westi suggested and I think it makes the most sense.

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


More information about the wp-trac mailing list