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

git-svn-id: http://svn.automattic.com/wordpress/trunk@9254 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-10-20 17:39:01 +00:00
parent 45b8a2b4cd
commit 6f1a62f089
1 changed files with 1 additions and 1 deletions

View File

@ -649,7 +649,7 @@ function wp_list_pages($args = '') {
* @param array|string $args * @param array|string $args
*/ */
function wp_page_menu( $args = array() ) { 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 = wp_parse_args( $args, $defaults );
$args = apply_filters( 'wp_page_menu_args', $args ); $args = apply_filters( 'wp_page_menu_args', $args );