X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/1c09677af04c9e37714e09b73eb9dbc5b2e3eb13..312084b5d95c21feb519ff03decf948420e1f6fa:/wp-includes/post.php diff --git a/wp-includes/post.php b/wp-includes/post.php index f0427c16..2e980713 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -2391,8 +2391,10 @@ function &get_page_children($page_id, $pages) { */ function &get_page_hierarchy( &$pages, $page_id = 0 ) { - if ( empty( $pages ) ) - return null; + if ( empty( $pages ) ) { + $return = array(); + return $return; + } $children = array(); foreach ( (array) $pages as $p ) {