WordPress.org

Make WordPress Core

Changeset 11642


Ignore:
Timestamp:
06/26/2009 05:24:02 AM (9 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post-template.php

    r11567 r11642  
    807807 */
    808808function wp_page_menu( $args = array() ) {
    809     $defaults = array('sort_column' => 'post_title', 'menu_class' => 'menu', 'echo' => true, 'link_before' => '', 'link_after' => '');
     809    $defaults = array('sort_column' => 'menu_order, post_title', 'menu_class' => 'menu', 'echo' => true, 'link_before' => '', 'link_after' => '');
    810810    $args = wp_parse_args( $args, $defaults );
    811811    $args = apply_filters( 'wp_page_menu_args', $args );
Note: See TracChangeset for help on using the changeset viewer.