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

git-svn-id: http://svn.automattic.com/wordpress/trunk@6399 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-12-17 06:53:59 +00:00
parent c0d2060f82
commit 9bca1574ca
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'])));
// Query pages.
$r['hierarchical'] = 0;
$pages = get_pages($r);
if ( !empty($pages) ) {