mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
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:
parent
c0d2060f82
commit
9bca1574ca
@ -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) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user