[wp-trac] [WordPress Trac] #21534: Walker: has_children is only set if $args[0] is an array
WordPress Trac
wp-trac at lists.automattic.com
Fri Aug 10 02:12:34 UTC 2012
#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: Awaiting Review
Component: Menus | Version: 3.4.1
Severity: normal | Keywords: has-patch
--------------------------+-----------------------------
You can't depend on `has_children` because it doesn't get set if
`$args[0]` is an object. This is obviously an easy fix, just check if it's
an object and set it in that case.
Related: #15214
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21534>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list