[wp-trac] [WordPress Trac] #19274: Widgets shift when new sidebars added/removed

WordPress Trac wp-trac at lists.automattic.com
Thu Nov 17 06:21:36 UTC 2011


#19274: Widgets shift when new sidebars added/removed
--------------------------+-----------------------------
 Reporter:  batmoo        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.3
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 When an *empty sidebar* is removed or a *new sidebar* is adding next to an
 empty sidebar, widgets will shift down one sidebar.

 Steps to reproduce:

 1. Add a bunch of sidebars, sidebar-1, sidebar-2, sidebar-3, sidebar-4
 (using register_sidebar)
 1. Add text widgets to all of them (title them 1, 2, 3, 4 respectively)
 1. Remove the widget from sidebar-2 (so that it’s completely empty)
 1. Remove sidebar-2 (remove or comment out the register_sidebar call)
 1. The widgets will “shift” (sidebar-3 will be empty, sidebar-4 will have
 text widget titled “3″)

 You can also reproduce the issue by adding a new sidebar-1.5 (instead of
 removing) at step 4.

 It's a bit of an edge-case but is particularly a problem when you have
 dynamically generated sidebars (based on custom post types and taxonomies,
 for example) or during theme development. The first use case is becoming
 more common, for displaying sidebars specific to different single and
 archive pages.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19274>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list