whoops, make wp_list_pages not spew a warning when there are no pages
git-svn-id: https://develop.svn.wordpress.org/trunk@2360 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
cdc96a2cc5
commit
7a45d0e309
@ -297,10 +297,12 @@ function get_pages($args = '') {
|
||||
"$exclusions " .
|
||||
"ORDER BY " . $r['sort_column'] . " " . $r['sort_order']);
|
||||
|
||||
$cache_pages = array();
|
||||
if (count($pages)) {
|
||||
foreach($pages as $page) {
|
||||
$cache_pages[$page->ID] = $page;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
return $cache_pages;
|
||||
|
Loading…
Reference in New Issue
Block a user