[wp-trac] [WordPress Trac] #56946: WP 6.1-RC6: `menu-item-has-children` class is not being applied correctly

WordPress Trac noreply at wordpress.org
Tue Nov 8 11:23:30 UTC 2022


#56946: WP 6.1-RC6: `menu-item-has-children` class is not being applied correctly
--------------------------------------+---------------------
 Reporter:  webmandesign              |       Owner:  (none)
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  6.1.1
Component:  Menus                     |     Version:  6.1
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------

Comment (by nuvoPoint):

 We are still having issues with line 223:

 ( $args->depth <= 0 || $menu_items_with_children[ $menu_item->ID ] <
 $args->depth )

 This extra check was added in v.6.1 but is this necessary?

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


More information about the wp-trac mailing list