mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-13 05:10:18 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@39561 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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}}',
|
||||
|
||||
Reference in New Issue
Block a user