scripts.mit.edu
/
autoinstalls
/
wordpress.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Wordpress 2.9.1
[autoinstalls/wordpress.git]
/
wp-includes
/
post.php
diff --git
a/wp-includes/post.php
b/wp-includes/post.php
index f0427c16d33c6d6be0f7e3c87fa1cd99c307ef2a..2e9807138076d568331cd17fbc7dd4de64b3a8bd 100644
(file)
--- 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 ) {