From 83bffbc6c730fa02af42eda2f029e70f6c209dc6 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 5 Jun 2014 15:52:51 +0000 Subject: [PATCH] Correct @return value for get_children(). props ghost1227. fixes #28422. git-svn-id: https://develop.svn.wordpress.org/trunk@28677 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index ff46452c4c..393a411c54 100644 --- a/src/wp-includes/post.php +++ b/src/wp-includes/post.php @@ -311,7 +311,8 @@ function _wp_relative_upload_path( $path ) { * * @param mixed $args Optional. User defined arguments for replacing the defaults. * @param string $output Optional. Constant for return type, either OBJECT (default), ARRAY_A, ARRAY_N. - * @return array|bool False on failure and the type will be determined by $output parameter. + * @return array Array of children, where the type of each element is determined by $output parameter. + * Empty array on failure. */ function get_children($args = '', $output = OBJECT) { $kids = array();