Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#16211 closed defect (bug) (fixed)

In the admin bar, use ids instead of unique classes

Reported by: koopersmith Owned by: koopersmith
Milestone: 3.1 Priority: normal
Severity: normal Version: 3.1
Component: Administration Keywords: has-patch
Focuses: Cc:


Using unique classes in the admin bar makes plugin developers' lives more difficult, and runs contrary to conventional wisdom. Let's fix that.

Also, we should be using esc_attr on the class.

Attachments (2)

16211.diff (2.8 KB) - added by koopersmith 5 years ago.
16211.2.diff (3.3 KB) - added by koopersmith 5 years ago.

Download all attachments as: .zip

Change History (5)

@koopersmith5 years ago

comment:1 @koopersmith5 years ago

  • Keywords has-patch added

@koopersmith5 years ago

comment:2 @westi5 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [17279]) Add unique ids as well as of classes in the admin bar to make it easier for plugins to extend.
Ensure we escape the classname.
Fixes #16211 props koopersmith.

comment:3 @westi5 years ago

(In [17280]) Bump script loader versions. See #16211

Note: See TracTickets for help on using tickets.