[wp-trac] [WordPress Trac] #17879: Sidebar IDs need prefixing in "Edit Widget" screen

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 24 03:46:47 UTC 2011


#17879: Sidebar IDs need prefixing in "Edit Widget" screen
--------------------------+-----------------------------
 Reporter:  Alhadis       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Widgets       |    Version:  3.2
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 Hey all,

 If I register a dynamic sidebar with an ID of "footer", it overrides the
 ID of a matching element on the "Edit Widget" screen. Until 3.2-RC1, all I
 ever noticed was an ugly lack of CSS in the rollout menu (due to the fact
 that only one element defined by an ID will receive CSS rules.

 However, now I notice the rollout menu has broken altogether in the Edit
 Widgets page: if I click the down arrow after having defined a sidebar
 with an ID of "footer" in my theme, the description suddenly appears in
 the page's ''actual footer''. Even worse, it's now allowing me to drag-
 and-drop widgets into the element itself... (see attached)

 Many theme developers (especially less experienced ones) mightn't have the
 insight to use a different ID for their themes. I suggest prefixing the
 IDs being used in the widget rollout menus with something to prevent
 conflict:

 E.g., "footer" might become "sb_footer" or what-have-you.

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


More information about the wp-trac mailing list