[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
Wed Sep 28 22:12:19 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:  reviewing
 Priority:  normal                               |   Milestone:  6.1
Component:  Menus                                |     Version:  3.7
 Severity:  normal                               |  Resolution:
 Keywords:  good-first-bug has-patch has-unit-   |     Focuses:  ui
  tests                                          |
-------------------------------------------------+-------------------------

Comment (by audrasjb):

 Thanks @petitphp! I built a PR containing your patch to facilitate peer
 review.

 Pinging @costdev: if you have a chance, it would be wonderful if you could
 have a look on the unit tests in the above PR ✌️

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/28620#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list