Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#35100 closed defect (bug) (worksforme)

Missing classes for menu item post type archive when on single CPT

Reported by: benoitchantre's profile benoitchantre Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.4
Component: Menus Keywords:
Focuses: template Cc:

Description

When you add an archive link to the menu, the related menu item has the current-menu-item class as expected when you see the archive.

However, the menu item doesn't have the current-parent-menu / current-menu-ancestor class when you see a single CPT.

See also #34839 (wrong attribution of current_page_parent when on single/archive CPT)

Change History (6)

This ticket was mentioned in Slack in #core by chriscct7. View the logs.


8 years ago

This ticket was mentioned in Slack in #core by benoitchantre. View the logs.


8 years ago

#3 @benoitchantre
8 years ago

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

I did a new test with 4.4.2, it works.

#4 @benoitchantre
8 years ago

  • Keywords close added

#5 @chriscct7
8 years ago

  • Keywords close removed

#6 @chriscct7
8 years ago

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