[wp-trac] [WordPress Trac] #59744: walk_page_tree issue - cast array to object to fix

WordPress Trac noreply at wordpress.org
Thu Oct 26 09:27:55 UTC 2023


#59744: walk_page_tree issue - cast array to object to fix
----------------------------+-----------------------------
 Reporter:  lazardanlucian  |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  General         |    Version:
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 ( ! ) Warning: Attempt to read property "before" on array in
 C:\WinNMP\WWW\wordpress\wp-includes\class-walker-nav-menu.php on line 273

 $walker->walk expects an object but
 walk_page_tree passes an array.

 https://github.com/WordPress/WordPress/pull/679

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59744>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list