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

git-svn-id: http://svn.automattic.com/wordpress/trunk@14500 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-05-07 18:11:58 +00:00
parent 8d7445c3e8
commit d06c6634ae
1 changed files with 2 additions and 7 deletions

View File

@ -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');