Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#38835 closed enhancement (invalid)

A current-menu-item CSS class is not added to relevant WP menu items if the query is for a custom post type archive

Reported by: henrywright's profile henry.wright Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.6.1
Component: Menus Keywords:
Focuses: Cc:

Description

A current-menu-item CSS class doesn't get added to relevant post type archive menu items if the current query is for a post type archive.

Change History (4)

#1 @henry.wright
8 years ago

Steps to reproduce

  1. Add a post type archive item to a WP menu
  2. Visit the post type archive

Note that the current-menu-item CSS class isn't added to the menu item.

#2 @henry.wright
8 years ago

  • Component changed from General to Menus
  • Type changed from defect (bug) to enhancement

#3 @henry.wright
8 years ago

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

A current-menu-item class does actually get added to the relevant menu item(s). Closing this.

#4 @netweb
8 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.