[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 4 20:12:33 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 antonvlasenko):

 This [https://github.com/WordPress/wordpress-
 develop/commit/24144392088b37d60e29ee910c7344e3d7c7d067 commit] caused
 this error on one of the WordPress websites:

 {{{
 Warning: Undefined array key 3807 in
 /homepages/24/d4296231672/htdocs/wordpress/wp-includes/nav-menu-
 template.php on line 210
 }}}

 Please see https://wordpress.org/support/topic/undefined-array-key-3807
 for additional context.
 In my opinion this ticket should be reopened.
 FYI: @audrasjb @slobodanmanic

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


More information about the wp-trac mailing list