[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:50:51 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:  Future Release
Component:  Menus                       |     Version:  3.0
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch commit 3.7-early  |
----------------------------------------+-----------------------------
Changes (by nacin):

 * milestone:  3.7 => Future Release


Comment:

 This is not a regression, and seems to me like either
 [attachment:21534.2.diff] would make sense as a specific fix, or casting
 `$args[0]` from an object to an array in Walker::display_element() would
 make sense as a general fix.

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


More information about the wp-trac mailing list