From cdccf9cf7cac6e72d272bf0a3d9152e447884588 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 26 Jun 2009 05:24:23 +0000 Subject: [PATCH] Sort wp_page_menu() by menu_order. Props nathanrice. fixes #10266 for 2.8.1 git-svn-id: http://svn.automattic.com/wordpress/branches/2.8@11643 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 71ba4bdd63..35a7caa9fb 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -806,7 +806,7 @@ function wp_list_pages($args = '') { * @param array|string $args */ function wp_page_menu( $args = array() ) { - $defaults = array('sort_column' => 'post_title', 'menu_class' => 'menu', 'echo' => true, 'link_before' => '', 'link_after' => ''); + $defaults = array('sort_column' => 'menu_order, post_title', 'menu_class' => 'menu', 'echo' => true, 'link_before' => '', 'link_after' => ''); $args = wp_parse_args( $args, $defaults ); $args = apply_filters( 'wp_page_menu_args', $args );