From f47ebc68e4c5667341b6c530ba2dbd309c181982 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Wed, 23 Dec 2009 16:03:04 +0000 Subject: [PATCH] Notice fix. Only return variable references by reference. git-svn-id: https://develop.svn.wordpress.org/trunk@12517 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 509a5dcfa1..efa616745d 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -2400,8 +2400,10 @@ function &get_page_children($page_id, $pages) { */ function &get_page_hierarchy( &$pages, $page_id = 0 ) { - if ( empty( $pages ) ) - return null; + if ( empty( $pages ) ) { + $result = null; + return $result; + } $children = array(); foreach ( (array) $pages as $p ) {