From cb973fe2730716c8572b481a881359ab0bb41c09 Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Fri, 16 Mar 2007 08:19:10 +0000 Subject: [PATCH] have wp_list_pages() default to menu_order sorting and only use post_title sorting as a secondary sort. props johnbillion. fixes #3924 for trunk. git-svn-id: https://develop.svn.wordpress.org/trunk@5049 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index 3b1ca3550d..94d2876193 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -281,7 +281,7 @@ function wp_list_pages($args = '') { parse_str($args, $r); $defaults = array('depth' => 0, 'show_date' => '', 'date_format' => get_option('date_format'), - 'child_of' => 0, 'exclude' => '', 'title_li' => __('Pages'), 'echo' => 1, 'authors' => ''); + 'child_of' => 0, 'exclude' => '', 'title_li' => __('Pages'), 'echo' => 1, 'authors' => '', 'sort_column' => 'menu_order, post_title'); $r = array_merge($defaults, $r); $output = '';