[wp-trac] [WordPress Trac] #39800: current_item_{parent|ancestor} Not set for Post Type Archive Items
WordPress Trac
noreply at wordpress.org
Mon May 8 16:58:18 UTC 2017
#39800: current_item_{parent|ancestor} Not set for Post Type Archive Items
--------------------------+--------------------
Reporter: mrwweb | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.8
Component: Menus | Version: 4.7.2
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+--------------------
Comment (by mrwweb):
Tested @ajoah's patch and it looks good! It fixes both the
`current_item_parent` and `current_item_ancestor` properties of each menu
item object. The menu classes also look good, though I believe they were
already working.
Attaching a hopefully-final patch that adds a final line break before the
comment for the next `if` clause to match formatting in rest of file.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39800#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list