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. Built from https://develop.svn.wordpress.org/trunk@35737 git-svn-id: http://core.svn.wordpress.org/trunk@35701 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a2ec7caf93
commit
77c6154881
|
@ -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>',
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-beta4-35736';
|
||||
$wp_version = '4.4-beta4-35737';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue