Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#17591 closed defect (bug) (duplicate)

Widget Admin: Auto-generated IDs Can Duplicate Page IDs

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

Description

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
15 years ago

  • Milestone Awaiting Review
  • Resolutionduplicate
  • Status newclosed
Note: See TracTickets for help on using tickets.