Bundled Themes: allow `show_home` argument to be overridden when using `wp_page_menu` as a fallback to a Custom Menu. Props SergeyBiryukov and kovshenin, fixes #22331.

git-svn-id: http://core.svn.wordpress.org/trunk@22359 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Lance Willett 2012-11-02 16:52:53 +00:00
parent 440e2b8786
commit f3cfd63822
3 changed files with 6 additions and 3 deletions

View File

@ -375,6 +375,7 @@ add_filter( 'get_the_excerpt', 'twentyeleven_custom_excerpt_more' );
* Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link.
*/
function twentyeleven_page_menu_args( $args ) {
if ( ! isset( $args['show_home'] ) )
$args['show_home'] = true;
return $args;
}

View File

@ -224,6 +224,7 @@ endif;
* @since Twenty Ten 1.0
*/
function twentyten_page_menu_args( $args ) {
if ( ! isset( $args['show_home'] ) )
$args['show_home'] = true;
return $args;
}

View File

@ -190,6 +190,7 @@ add_filter( 'wp_title', 'twentytwelve_wp_title', 10, 2 );
* @since Twenty Twelve 1.0
*/
function twentytwelve_page_menu_args( $args ) {
if ( ! isset( $args['show_home'] ) )
$args['show_home'] = true;
return $args;
}