[wp-trac] [WordPress Trac] #38486: current_page_parent class wrongly added to menu item
WordPress Trac
noreply at wordpress.org
Tue Aug 29 13:36:21 UTC 2017
#38486: current_page_parent class wrongly added to menu item
--------------------------+------------------------------
Reporter: henry.wright | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version: 4.6.1
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Comment (by FlorianBrinkmann):
I have the same issue. The patch from @henry.wright fixes that the
`current_page_parent` class is added incorrectly to the blog page menu
item when viewing a CPT archive or single view. My patch 38486.2.diff goes
further and adds the `current_page_parent` class to the post type archive
menu item if a single view of this CPT is displayed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38486#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list