From f9792ed973f9aa9c329dd64f5eee35f8677bc978 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 5 Jun 2014 15:53:14 +0000 Subject: [PATCH] Correct @return value for get_children(). props ghost1227. fixes #28422. Built from https://develop.svn.wordpress.org/trunk@28677 git-svn-id: http://core.svn.wordpress.org/trunk@28495 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index ff46452c4c..393a411c54 100644 --- a/wp-includes/post.php +++ b/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();