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

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 15 10:59:34 UTC 2011


#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 westi):

 Replying to [comment:1 ocean90]:
 > Without testing: Is it not possible via {{{ update_option(
 'sidebars_widgets', array() )}}}?
 >
 > I mean we do it in core too, see [18643].

 It's possible but you have to know the structure of an "internal" option.

 Ideally we should have a function a theme can call / or an extention of
 register_sidebar() which says put these widgets in here when the sidebar
 is empty / new.

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


More information about the wp-trac mailing list