Get all children. Props filosofo. fixes #8527
git-svn-id: http://svn.automattic.com/wordpress/trunk@10130 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
504bc044d8
commit
918d84ef68
|
@ -127,8 +127,8 @@ function &get_children($args = '', $output = OBJECT) {
|
|||
}
|
||||
|
||||
$defaults = array(
|
||||
'numberposts' => -1, 'post_type' => '',
|
||||
'post_status' => '', 'post_parent' => 0
|
||||
'numberposts' => -1, 'post_type' => 'any',
|
||||
'post_status' => 'any', 'post_parent' => 0,
|
||||
);
|
||||
|
||||
$r = wp_parse_args( $args, $defaults );
|
||||
|
|
Loading…
Reference in New Issue