mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-28 23:27:39 +02:00
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 ) {
|
function &get_page_hierarchy( &$pages, $page_id = 0 ) {
|
||||||
|
|
||||||
if ( empty( $pages ) )
|
if ( empty( $pages ) ) {
|
||||||
return null;
|
$result = null;
|
||||||
|
return $result;
|
||||||
|
}
|
||||||
|
|
||||||
$children = array();
|
$children = array();
|
||||||
foreach ( (array) $pages as $p ) {
|
foreach ( (array) $pages as $p ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user