From 57830bf2becd1413aae063d94439cbe864bcc6fb Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Sat, 10 Dec 2016 23:39:43 +0000 Subject: [PATCH] Customize: Deprecate `page_home` nav menu item starter content in favor of `home_link`; replace usage in Twenty Seventeen. Props celloexpressions, westonruter. Amends [38991]. See #38615, #38114. Fixes #39104. Built from https://develop.svn.wordpress.org/trunk@39561 git-svn-id: http://core.svn.wordpress.org/trunk@39501 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyseventeen/functions.php | 2 +- wp-includes/theme.php | 7 ++++++- wp-includes/version.php | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/wp-content/themes/twentyseventeen/functions.php b/wp-content/themes/twentyseventeen/functions.php index 30fdfccb94..a41d317e4a 100644 --- a/wp-content/themes/twentyseventeen/functions.php +++ b/wp-content/themes/twentyseventeen/functions.php @@ -169,7 +169,7 @@ function twentyseventeen_setup() { 'top' => array( 'name' => __( 'Top Menu', 'twentyseventeen' ), 'items' => array( - 'page_home', + 'link_home', 'page_about', 'page_blog', 'page_contact', diff --git a/wp-includes/theme.php b/wp-includes/theme.php index db6016d7c3..da1cb12ce9 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -1965,7 +1965,12 @@ function get_theme_starter_content() { ) ), ), 'nav_menus' => array( - 'page_home' => array( + 'link_home' => array( + 'type' => 'custom', + 'title' => _x( 'Home', 'Theme starter content' ), + 'url' => home_url(), + ), + 'page_home' => array( // Deprecated in favor of home_link. 'type' => 'post_type', 'object' => 'page', 'object_id' => '{{home}}', diff --git a/wp-includes/version.php b/wp-includes/version.php index 1c14d9df16..ac6c544f1a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.8-alpha-39560'; +$wp_version = '4.8-alpha-39561'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.