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:
parent
420cf2e210
commit
a2c101cf48
|
@ -190,7 +190,8 @@ add_filter( 'wp_title', 'twentytwelve_wp_title', 10, 2 );
|
|||
* @since Twenty Twelve 1.0
|
||||
*/
|
||||
function twentytwelve_page_menu_args( $args ) {
|
||||
$args['show_home'] = true;
|
||||
if ( ! isset( $args['show_home'] ) )
|
||||
$args['show_home'] = true;
|
||||
return $args;
|
||||
}
|
||||
add_filter( 'wp_page_menu_args', 'twentytwelve_page_menu_args' );
|
||||
|
|
Loading…
Reference in New Issue