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

WordPress Trac noreply at wordpress.org
Thu Oct 26 16:44:27 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:  Menus           |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+------------------------------
Changes (by sabernhardt):

 * component:  General => Menus


Old description:

> ( ! ) 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

New description:

 `( ! ) Warning: Attempt to read property "before" on array in ...\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#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list