[wp-trac] [WordPress Trac] #17591: Widget Admin: Auto-generated IDs Can Duplicate Page IDs
WordPress Trac
wp-trac at lists.automattic.com
Fri May 27 16:21:18 UTC 2011
#17591: Widget Admin: Auto-generated IDs Can Duplicate Page IDs
----------------------------+-----------------------------
Reporter: ssmathias | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 3.2
Severity: normal | Keywords:
----------------------------+-----------------------------
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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17591>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list