Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#17591 closed defect (bug) (duplicate)

Widget Admin: Auto-generated IDs Can Duplicate Page IDs

Reported by: ssmathias's profile ssmathias Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.2
Component: Administration Keywords:
Focuses: Cc:


When a widget area is registered with a name that matches the ID of one of the standard admin page elements, it creates a duplicate ID which gets targeted by JavaScript, resulting in unexpected behavior.

For example, registering a widget area with the name of "Footer" will create a widget admin panel with the id of "footer", matching the existing id "footer" used for the admin page's footer content.

I propose namespacing the auto-generated elements with "widgetarea-" to avoid creating duplicate IDs with admin core elements.

Change History (1)

#1 @nacin
13 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.