WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#17973 closed defect (bug) (invalid)

Attachment Taxonomies menu items not highlighted correctly

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

Description

Attachment Taxonomies menu items are not being correctly highlighted.

Code to reproduce:

function foobar_tax() {
	register_taxonomy('foobar', array( 'post', 'attachment:image' ), array('label' => 'FooBars', 'show_ui' => true) );
}
add_action('init', 'foobar_tax');

Accessing the attachment taxonomy via the Media subheader highlights the "Post" header, Foobar under the Posts menu, and FooBar under the Media heading.

Expected behaviour: "Media" header be highlighted, and Foobar under Media highlighted only.

Patch attached

Change History (1)

comment:1 dd323 years ago

  • Keywords has-patch removed
  • Milestone Future Release deleted
  • Resolution set to invalid
  • Status changed from new to closed
  • Version 3.1 deleted

Oops.. We don't even support Attachment Taxonomies in the admin menu yet #13414 I had that code still active.

Note: See TracTickets for help on using tickets.