[wp-trac] [WordPress Trac] #56926: Infinite loop in wp_nav_menu

WordPress Trac noreply at wordpress.org
Fri Dec 16 03:02:32 UTC 2022


#56926: Infinite loop in wp_nav_menu
-------------------------------------------------+-------------------------
 Reporter:  david.binda                          |       Owner:
                                                 |  hellofromTonya
     Type:  defect (bug)                         |      Status:  reopened
 Priority:  normal                               |   Milestone:  6.1.2
Component:  Menus                                |     Version:  6.1
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests fixed-      |     Focuses:
  major                                          |
-------------------------------------------------+-------------------------

Comment (by dd32):

 Some themes appear to be running into a fatal error here, for example
 these lines are causing fatals:

 > E_ERROR: Uncaught ArgumentCountError: Too few arguments to function
 wp_nav_menu_remove_menu_item_has_children_class(), 3 passed in wp-includes
 /class-wp-hook.php on line 308 and exactly 4 expected in wp-includes/nav-
 menu-template.php:649
 > E_ERROR: Uncaught ArgumentCountError: Too few arguments to function
 wp_nav_menu_remove_menu_item_has_children_class(), 2 passed in wp-includes
 /class-wp-hook.php on line 308 and exactly 4 expected in wp-includes/nav-
 menu-template.php:649

 https://themes.trac.wordpress.org/browser/hestia/3.0.24/inc/class-hestia-
 bootstrap-navwalker.php?marks=69#L59
 https://themes.trac.wordpress.org/browser/lightning/15.2.1/_g3/inc/class-
 vk-description-walker.php?marks=14#L4
 https://themes.trac.wordpress.org/browser/melos/1.0.1/admin/main/options/00
 .theme-setup.php?marks=257#L247 (Somewhere in there, I'm not sure where,
 but it triggers the `2 passed` error above)

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


More information about the wp-trac mailing list