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:
ryan 2008-12-08 21:00:25 +00:00
parent 504bc044d8
commit 918d84ef68
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 );