Sort wp_page_menu() by menu_order. Props nathanrice. fixes #10266

git-svn-id: http://svn.automattic.com/wordpress/trunk@11642 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-06-26 05:24:02 +00:00
parent 82472f5474
commit 8483a08d39
1 changed files with 1 additions and 1 deletions

View File

@ -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 );