wp_list_pages() no longer requires get_pages() to do a hierarchical sort. Set hierarchical to false. see #5458

git-svn-id: https://develop.svn.wordpress.org/trunk@6399 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-12-17 06:53:59 +00:00
parent 7812280d07
commit 930b3c2b2e
1 changed files with 1 additions and 0 deletions

View File

@ -318,6 +318,7 @@ function wp_list_pages($args = '') {
$r['exclude'] = implode(',', apply_filters('wp_list_pages_excludes', explode(',', $r['exclude']))); $r['exclude'] = implode(',', apply_filters('wp_list_pages_excludes', explode(',', $r['exclude'])));
// Query pages. // Query pages.
$r['hierarchical'] = 0;
$pages = get_pages($r); $pages = get_pages($r);
if ( !empty($pages) ) { if ( !empty($pages) ) {