[wp-trac] [WordPress Trac] #28620: When $depth argument is used in wp_nav_menu last level menu items still have .menu-item-has-children class, even though they are not shown
WordPress Trac
noreply at wordpress.org
Fri Nov 11 00:05:14 UTC 2022
#28620: When $depth argument is used in wp_nav_menu last level menu items still
have .menu-item-has-children class, even though they are not shown
-------------------------------------------------+-------------------------
Reporter: slobodanmanic | Owner: audrasjb
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.1
Component: Menus | Version: 3.7
Severity: normal | Resolution: fixed
Keywords: good-first-bug has-patch has-unit- | Focuses: ui
tests commit |
-------------------------------------------------+-------------------------
Comment (by peterwilsoncc):
In [changeset:"54801" 54801]:
{{{
#!CommitTicketReference repository="" revision="54801"
Menus: Apply `menu-item-has-children` class in sub-menus.
Ensure the `menu-item-has-children` class is added to sub-menu items when
`wp_nav_menu()` is called with the `depth` parameter specified to a non-
zero value.
Follow up to [54478].
Props davidvongries, fpodhorsky, hellofromTonya, innovext, larsmqller,
LeonidasMilossis, mattkeys, mukesh27, nuvoPoint, ocean90, outrankjames,
petitphp, SergeyBiryukov, sippis, webmandesign.
Fixes #56946.
See #28620.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28620#comment:35>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list