From c6d9ed1f35e6dc270fc7079dd1aee8e9d53a99e5 Mon Sep 17 00:00:00 2001 From: scribu Date: Wed, 1 Dec 2010 20:23:57 +0000 Subject: [PATCH] Remove archaic reference return in get_children(). Props filosofo. Fixes #12372 git-svn-id: https://develop.svn.wordpress.org/trunk@16667 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 89ce0f38e8..e80250deb9 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -266,7 +266,7 @@ function _wp_relative_upload_path( $path ) { * @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. */ -function &get_children($args = '', $output = OBJECT) { +function get_children($args = '', $output = OBJECT) { $kids = array(); if ( empty( $args ) ) { if ( isset( $GLOBALS['post'] ) ) { @@ -295,7 +295,7 @@ function &get_children($args = '', $output = OBJECT) { update_post_cache($children); foreach ( $children as $key => $child ) - $kids[$child->ID] =& $children[$key]; + $kids[$child->ID] = $children[$key]; if ( $output == OBJECT ) { return $kids;