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

WordPress Trac noreply at wordpress.org
Wed Sep 18 07:56:22 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 westi):

 Replying to [comment:6 nacin]:
 > I don't have an objection to this, but just to confirm, does it make
 more sense to do [attachment:21534.diff] than inside the nav menu API?

 I wonder if we should switch the nav menu API to not use objects, or if
 that will break plugins...

 Seems strange that it does use objects instead of arrays.

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


More information about the wp-trac mailing list