[wp-trac] [WordPress Trac] #17979: Avoid losing widgets when switching themes

WordPress Trac wp-trac at lists.automattic.com
Fri Mar 30 10:20:15 UTC 2012


#17979: Avoid losing widgets when switching themes
-------------------------------------+---------------------
 Reporter:  lancewillett             |       Owner:  ryan
     Type:  task (blessed)           |      Status:  closed
 Priority:  high                     |   Milestone:  3.3
Component:  Widgets                  |     Version:  2.9
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch needs-testing  |
-------------------------------------+---------------------
Changes (by meglio):

 * cc: meglio (added)


Comment:

 Hello WP Hackers!

 Sorry for this off-topic question but I'm sure it is the most right place
 to ask it.

 So I'm programmatically switching theme with switch_theme(), then wanting
 to add/sort widgets in the newly registered sidebar, but before this I
 want WP to process orphaned widgets and put them in the sidebar of the new
 theme. Is there any way to do it programmatically - some function to call
 after switch_theme()? Thanks!

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


More information about the wp-trac mailing list