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:
parent
cbef7dc6c4
commit
a31ad119f4
@ -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
Block a user