Return empty array instead of null. Props Denis-de-Bernardy. fixes #11661 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@12571 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5459a227a8
commit
36272e0c33
@ -2401,7 +2401,7 @@ function &get_page_children($page_id, $pages) {
|
|||||||
function &get_page_hierarchy( &$pages, $page_id = 0 ) {
|
function &get_page_hierarchy( &$pages, $page_id = 0 ) {
|
||||||
|
|
||||||
if ( empty( $pages ) ) {
|
if ( empty( $pages ) ) {
|
||||||
$result = null;
|
$result = array();
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user