diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index 7c426adbc..600ae804c 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -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) ) {