[wp-trac] Re: [WordPress Trac] #10053: get_children() returns false
when no children are found
WordPress Trac
wp-trac at lists.automattic.com
Sat Jun 6 20:26:16 GMT 2009
#10053: get_children() returns false when no children are found
-------------------------------+--------------------------------------------
Reporter: Denis-de-Bernardy | Owner: ryan
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.8
Component: Query | Version: 2.8
Severity: minor | Keywords: has-patch
-------------------------------+--------------------------------------------
Changes (by Denis-de-Bernardy):
* keywords: => has-patch
Comment:
so, basically, the patch makes it return a variable initialized to array()
instead of false. checked the WP code, and it's not expecting a value of
false anywhere.
this makes the behavior of get_children() consistent with that of
get_posts()
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10053#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list