Make WordPress Core

Opened 6 years ago

Closed 5 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 5 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 @voyagerfan57616 years ago

  • Cc WordPress@… added

@validBen5 years ago

comment:2 @validBen5 years ago

  • Keywords has-patch added; needs-patch removed

comment:3 @nacin5 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.