WordPress.org

Make WordPress Core

Changeset 9254


Ignore:
Timestamp:
10/20/2008 05:39:01 PM (10 years ago)
Author:
ryan
Message:

Tweak wp_page_menu() defaults. Props MichaelH. fixes #7914

File:
1 edited

Legend:

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

    r9246 r9254  
    650650 */
    651651function wp_page_menu( $args = array() ) {
    652     $defaults = array('title_li' => '', 'sort_column' => 'menu_order', 'menu_class' => 'menu', 'echo' => false);
     652    $defaults = array('sort_column' => 'post_title', 'menu_class' => 'menu', 'echo' => true);
    653653    $args = wp_parse_args( $args, $defaults );
    654654    $args = apply_filters( 'wp_page_menu_args', $args );
Note: See TracChangeset for help on using the changeset viewer.