From 2be61281f0dfb8070b684772c27ef59c88659d60 Mon Sep 17 00:00:00 2001 From: Konstantin Obenland Date: Wed, 25 Nov 2015 18:54:51 +0000 Subject: [PATCH] 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 --- src/wp-includes/post-template.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/wp-includes/post-template.php b/src/wp-includes/post-template.php index 7748785922..3164509b8e 100644 --- a/src/wp-includes/post-template.php +++ b/src/wp-includes/post-template.php @@ -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' => '