Get all children. Props filosofo. fixes #8527

git-svn-id: https://develop.svn.wordpress.org/trunk@10130 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-12-08 21:00:25 +00:00
parent cbef7dc6c4
commit a31ad119f4
1 changed files with 2 additions and 2 deletions

View File

@ -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 );