[wp-trac] [WordPress Trac] #36012: Add .current-ancestor class to any relative menu item ancestor
WordPress Trac
noreply at wordpress.org
Fri Apr 26 21:19:58 UTC 2019
#36012: Add .current-ancestor class to any relative menu item ancestor
-------------------------------------+-------------------------------------
Reporter: vovkasolovev | Owner: SergeyBiryukov
Type: enhancement | Status: reopened
Priority: normal | Milestone: Future Release
Component: Menus | Version: 4.4.2
Severity: normal | Resolution:
Keywords: needs-unit-tests has- | Focuses: accessibility,
patch | template
-------------------------------------+-------------------------------------
Comment (by Mista-Flo):
Yeah sure it makes sense but you already have the general class "current-
menu-ancestor", so I guess it's what you want.
By the way, I have added a new patch just for refactoring purpose, tried
to merge some if state to avoid extra code lines.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36012#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list