Remove archaic reference return in get_children(). Props filosofo. Fixes #12372

git-svn-id: http://svn.automattic.com/wordpress/trunk@16667 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
scribu 2010-12-01 20:23:57 +00:00
parent 9c8582d681
commit 57d6d72d2f

View File

@ -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;