Return empty array instead of null. Props Denis-de-Bernardy. fixes #11661 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@12571 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
880ce66f34
commit
309afc8ad3
|
@ -2401,7 +2401,7 @@ function &get_page_children($page_id, $pages) {
|
|||
function &get_page_hierarchy( &$pages, $page_id = 0 ) {
|
||||
|
||||
if ( empty( $pages ) ) {
|
||||
$result = null;
|
||||
$result = array();
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue