mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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>',
|
||||
|
||||
Reference in New Issue
Block a user