Notice fix. Only return variable references by reference.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12517 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0aaf0d83af
commit
f83b446117
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in New Issue