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:
parent
7812280d07
commit
930b3c2b2e
|
@ -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) ) {
|
||||||
|
|
Loading…
Reference in New Issue