Customize: Deprecate `page_home` nav menu item starter content in favor of `home_link`; replace usage in Twenty Seventeen.

Props celloexpressions, westonruter.
See #38615, #38114, [38991].
Merges [39561] to the 4.7 branch.
Fixes #39104.

Built from https://develop.svn.wordpress.org/branches/4.7@39575


git-svn-id: http://core.svn.wordpress.org/branches/4.7@39515 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dion Hulse 2016-12-12 02:25:35 +00:00
parent 15a94f7c00
commit a30c4df4b5
2 changed files with 7 additions and 2 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}}',