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:
parent
c100b80c20
commit
1fcb5f3a63
|
@ -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');
|
||||||
|
|
Loading…
Reference in New Issue