[wp-trac] [WordPress Trac] #12163: Setup default widgets when installing
WordPress Trac
wp-trac at lists.automattic.com
Mon Feb 8 15:51:02 UTC 2010
#12163: Setup default widgets when installing
--------------------------+-------------------------------------------------
Reporter: ryan | Owner: azaozz
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: Widgets | Version: 2.9.1
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
Comment(by azaozz):
The patch looks good, cleaned it a bit. Was thinking we could use
`add_option()` so if somebody is re-running the install it wouldn't
overwrite already defined widgets, but perhaps the expected behavior would
be to overwrite them.
We need to add support for default widgets to `register_sidebar` so theme
authors can pre-register widgets there when the sidebar is empty instead
of hard-coding them in the theme. That has to happen on the next page load
after a theme is activated.
Was thinking to drop most of the back-compat code in the widgets API and
improve `register_sidebar` (there are several tickets about it) but
perhaps that's better left for 3.1.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12163#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list