Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#35100 closed defect (bug) (worksforme)

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

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

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.


11 years ago

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


11 years ago

#3 @benoitchantre
11 years ago

  • Resolution → worksforme
  • Status new → closed

I did a new test with 4.4.2, it works.

#4 @benoitchantre
11 years ago

  • Keywords close added

#5 @chriscct7
11 years ago

  • Keywords close removed

#6 @chriscct7
11 years ago

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