[wp-trac] [WordPress Trac] #34839: Wrong attribution of current_page_parent for menus when on single/archive CPT
WordPress Trac
noreply at wordpress.org
Thu Dec 3 16:21:17 UTC 2015
#34839: Wrong attribution of current_page_parent for menus when on single/archive
CPT
--------------------------+-----------------------------
Reporter: tabrisrp | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version: trunk
Severity: normal | Keywords:
Focuses: template |
--------------------------+-----------------------------
- When on a single CPT page, the menu item receiving the class
'''current_page_parent''' is the blog archive page, and not the archive
CPT page.
- When on an archive CPT page that is in a submenu, the menu item
receiving the class '''current_page_parent''' is the blog archive page,
and not the parent menu item. Also, the parent menu item doesn't have the
'''current-menu-parent''' and '''current-menu-ancestor''' classes.
This plugin has some functions that deal with this issue, but it's
probably something that should be fixed in core now since archive CPT page
are available by default. [https://wordpress.org/plugins/sf-archiver/]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34839>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list