Properly handle the wp_page_args filter in Twenty Ten. fixes #13293, props demetris.

git-svn-id: https://develop.svn.wordpress.org/trunk@14500 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-05-07 18:11:58 +00:00
parent c100b80c20
commit 1fcb5f3a63
1 changed files with 2 additions and 7 deletions

View File

@ -206,15 +206,10 @@ endif;
if ( ! function_exists( 'twentyten_page_menu_args' ) ) : if ( ! function_exists( 'twentyten_page_menu_args' ) ) :
/** /**
* Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link * Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link.
*/ */
function twentyten_page_menu_args($args) { function twentyten_page_menu_args($args) {
$args = array( $args['show_home'] = true;
'sort_column' => 'menu_order, post_title',
'menu_class' => 'menu',
'echo' => true,
'show_home' => true
);
return $args; return $args;
} }
add_filter('wp_page_menu_args', 'twentyten_page_menu_args'); add_filter('wp_page_menu_args', 'twentyten_page_menu_args');