[wp-trac] [WordPress Trac] #21534: Walker: has_children is only set if $args[0] is an array

WordPress Trac noreply at wordpress.org
Wed Oct 9 19:47:56 UTC 2013


#21534: Walker: has_children is only set if $args[0] is an array
----------------------------------------+-----------------------
 Reporter:  betzster                    |       Owner:  betzster
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  3.7
Component:  Menus                       |     Version:  3.0
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch commit 3.7-early  |
----------------------------------------+-----------------------

Comment (by nacin):

 Would [attachment:21534.2.diff] fix this? It appears we used an object for
 some kind of convenience or whatever, but clearly walk_nav_menu_tree()
 should have received it in array form for it to be passed to
 Walker::walk().

--
Ticket URL: <http://core.trac.wordpress.org/ticket/21534#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list