Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#12445 closed defect (bug) (fixed)

Admin Menu is getting dup IDs courtesy of custom post types?

Reported by: Denis-de-Bernardy Owned by:
Milestone: 3.0 Priority: normal
Severity: normal Version: 3.0
Component: UI Keywords: has-patch
Focuses: Cc:


Highlighted in #12434: "However if you want to use your own icon, you won't be able to select your post type as all of them are assigned a 'menu-posts' id."

don't dup IDs break jQuery selectors, too? if so, it might be breaking our menu states scripts, and the like.

Attachments (1)

menu.php.diff (1.3 KB) - added by validBen 8 years ago.

Download all attachments as: .zip

Change History (4)

#1 @voyagerfan5761
8 years ago

  • Cc WordPress@… added

8 years ago

#2 @validBen
8 years ago

  • Keywords has-patch added; needs-patch removed

#3 @nacin
8 years ago

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

(In [14654]) Make sure custom post types have unique IDs in the admin menu. props validBen, fixes #12445.

Note: See TracTickets for help on using tickets.