From 77c61548810e40ae76a04b112a0085370e62fab1 Mon Sep 17 00:00:00 2001 From: Konstantin Obenland Date: Wed, 25 Nov 2015 18:55:26 +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. Built from https://develop.svn.wordpress.org/trunk@35737 git-svn-id: http://core.svn.wordpress.org/trunk@35701 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post-template.php | 1 - wp-includes/version.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index 7748785922..3164509b8e 100644 --- a/wp-includes/post-template.php +++ b/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' => '