forked from mirror/_s
Merge pull request #673 from fklein-lu/remove-home-link
Remove home link from `wp_page_menu()` args.
This commit is contained in:
commit
3e02659325
|
@ -7,18 +7,6 @@
|
|||
* @package _s
|
||||
*/
|
||||
|
||||
/**
|
||||
* Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link.
|
||||
*
|
||||
* @param array $args Configuration arguments.
|
||||
* @return array
|
||||
*/
|
||||
function _s_page_menu_args( $args ) {
|
||||
$args['show_home'] = true;
|
||||
return $args;
|
||||
}
|
||||
add_filter( 'wp_page_menu_args', '_s_page_menu_args' );
|
||||
|
||||
/**
|
||||
* Adds custom classes to the array of body classes.
|
||||
*
|
||||
|
|
Reference in New Issue