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

WordPress Trac wp-trac at lists.automattic.com
Fri Aug 26 17:52:01 UTC 2011


#17979: Avoid losing widgets when switching themes
-------------------------------------------------+------------------
 Reporter:  lancewillett                         |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  high                                 |   Milestone:  3.3
Component:  Widgets                              |     Version:  2.9
 Severity:  normal                               |  Resolution:
 Keywords:  ux-feedback has-patch needs-testing  |
-------------------------------------------------+------------------

Comment (by aaroncampbell):

 The new patch ([attachment:17979.5.diff]) includes everything from .4
 ("Orphaned Widgets", etc).  It also stores the sidebars and widget order
 before the theme is switched in a transient that lasts 1 week.  If you
 switch back to the old theme within that week your widget order is
 restored.

 Any widgets that you added after switching and before switching back go
 into inactive widgets.    Since we are storing widget ORDER if you update
 a widget your updates will persist.  This also means that if you delete a
 widget it can't be restored.

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


More information about the wp-trac mailing list