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:
parent
a366e58135
commit
57830bf2be
|
@ -169,7 +169,7 @@ function twentyseventeen_setup() {
|
||||||
'top' => array(
|
'top' => array(
|
||||||
'name' => __( 'Top Menu', 'twentyseventeen' ),
|
'name' => __( 'Top Menu', 'twentyseventeen' ),
|
||||||
'items' => array(
|
'items' => array(
|
||||||
'page_home',
|
'link_home',
|
||||||
'page_about',
|
'page_about',
|
||||||
'page_blog',
|
'page_blog',
|
||||||
'page_contact',
|
'page_contact',
|
||||||
|
|
|
@ -1965,7 +1965,12 @@ function get_theme_starter_content() {
|
||||||
) ),
|
) ),
|
||||||
),
|
),
|
||||||
'nav_menus' => array(
|
'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',
|
'type' => 'post_type',
|
||||||
'object' => 'page',
|
'object' => 'page',
|
||||||
'object_id' => '{{home}}',
|
'object_id' => '{{home}}',
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue