[wp-trac] [WordPress Trac] #35100: Missing classes for menu item post type archive when on single CPT

WordPress Trac noreply at wordpress.org
Tue Dec 15 12:32:20 UTC 2015


#35100: Missing classes for menu item post type archive when on single CPT
---------------------------+-----------------------------
 Reporter:  benoitchantre  |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Menus          |    Version:  4.4
 Severity:  normal         |   Keywords:
  Focuses:  template       |
---------------------------+-----------------------------
 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)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35100>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list