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

git-svn-id: https://develop.svn.wordpress.org/trunk@9254 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-10-20 17:39:01 +00:00
parent f747c73435
commit fa4ac95135
1 changed files with 1 additions and 1 deletions

View File

@ -649,7 +649,7 @@ function wp_list_pages($args = '') {
* @param array|string $args
*/
function wp_page_menu( $args = array() ) {
$defaults = array('title_li' => '', 'sort_column' => 'menu_order', 'menu_class' => 'menu', 'echo' => false);
$defaults = array('sort_column' => 'post_title', 'menu_class' => 'menu', 'echo' => true);
$args = wp_parse_args( $args, $defaults );
$args = apply_filters( 'wp_page_menu_args', $args );