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

WordPress Trac wp-trac at lists.automattic.com
Wed Jul 27 20:32:28 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:                |
--------------------------+------------------

Comment (by azaozz):

 See this as a two step solution:

 1. When switching themes keep the old theme widgets positions/sidebar
 mapping in a transient for a day (or week). This will allow us to restore
 the layout perfectly if the theme is switched back. A lot of users just
 try new themes without actually switching permanently.

 2. Try to map the old sidebars to the new. This is easily done for the
 first sidebar (as it almost always is an actual sidebar, left or right)
 but is problematic for the next. The right solution seems to be to map as
 many sidebars as possible and move the remaining widgets to sidebar 1.
 However that has to be done while the user is previewing the theme too so
 they would know if any widgets would need fixing or repositioning.

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


More information about the wp-trac mailing list