Template: Defining a default value for show_home
breaks back compat.
To add a home link to the fallback menu output many themes only check if that argument is set. Including Twenty Ten and Twenty Eleven. They check with `isset()` so child themes and other instances using `wp_page_menu()` have a chance to disable the home link by setting it to `false`. Fixes #11095. git-svn-id: https://develop.svn.wordpress.org/trunk@35737 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
dc167a20e5
commit
2be61281f0
@ -1227,7 +1227,6 @@ function wp_page_menu( $args = array() ) {
|
||||
'menu_class' => 'menu',
|
||||
'container' => 'div',
|
||||
'echo' => true,
|
||||
'show_home' => false,
|
||||
'link_before' => '',
|
||||
'link_after' => '',
|
||||
'before' => '<ul>',
|
||||
|
Loading…
Reference in New Issue
Block a user