wordpress-develop/tests/phpunit/tests/menu
Jb Audras 2414439208 Menus: Remove .menu-item-has-children on wp_nav_menu last level menu items when $depth arg is used.
This changeset prevents `wp_nav_menu` last level menu items from having the `.menu-item-has-children` class when the `$depth` argument is used. It adds a loop in `wp_nav_menu()` to calculate the depth of each menu item with children to make sure the class is added only when applicable.

Props slobodanmanic, kucrut, iCaspar, mdgl, petitphp, audrasjb, costdev.
Fixes #28620.


git-svn-id: https://develop.svn.wordpress.org/trunk@54478 602fd350-edb4-49c9-b593-d223f7449a82
2022-10-11 14:02:55 +00:00
..
nav-menu.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
walker-nav-menu-edit.php Tests: Use the factory method instead of the property. 2022-09-06 22:09:49 +00:00
walker-nav-menu.php Tests: Use the factory method instead of the property. 2022-09-06 22:09:49 +00:00
wp-nav-menu.php Menus: Remove .menu-item-has-children on wp_nav_menu last level menu items when $depth arg is used. 2022-10-11 14:02:55 +00:00
wpAjaxMenuQuickSearch.php Tests: Use the factory method instead of the property. 2022-09-06 22:09:49 +00:00
wpExpandNavMenuPostData.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00