#35100 closed defect (bug) (worksforme)
Missing classes for menu item post type archive when on single CPT
Reported by: | 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.
9 years ago
This ticket was mentioned in Slack in #core by benoitchantre. View the logs.
9 years ago
Note: See
TracTickets for help on using
tickets.
I did a new test with 4.4.2, it works.