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
This commit is contained in:
Weston Ruter 2016-12-10 23:39:43 +00:00
parent a366e58135
commit 57830bf2be
3 changed files with 8 additions and 3 deletions

View File

@ -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',

View File

@ -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}}',

View File

@ -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.