From 1fcb5f3a63afdb578d7ed2a1591db90128fd6fe0 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 7 May 2010 18:11:58 +0000 Subject: [PATCH] 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 --- wp-content/themes/twentyten/functions.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/wp-content/themes/twentyten/functions.php b/wp-content/themes/twentyten/functions.php index 8cfad6b675..06702a4c20 100644 --- a/wp-content/themes/twentyten/functions.php +++ b/wp-content/themes/twentyten/functions.php @@ -206,15 +206,10 @@ endif; 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) { - $args = array( - 'sort_column' => 'menu_order, post_title', - 'menu_class' => 'menu', - 'echo' => true, - 'show_home' => true - ); + $args['show_home'] = true; return $args; } add_filter('wp_page_menu_args', 'twentyten_page_menu_args');