WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/12/2016 02:24:19 AM (4 years ago)
Author:
dd32
Message:

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.

Location:
branches/4.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.7

  • branches/4.7/src/wp-includes/theme.php

    r39568 r39575  
    19661966        ),
    19671967        'nav_menus' => array(
    1968             'page_home' => array(
     1968            'link_home' => array(
     1969                'type' => 'custom',
     1970                'title' => _x( 'Home', 'Theme starter content' ),
     1971                'url' => home_url(),
     1972            ),
     1973            'page_home' => array( // Deprecated in favor of home_link.
    19691974                'type' => 'post_type',
    19701975                'object' => 'page',
Note: See TracChangeset for help on using the changeset viewer.