Changeset 39561
- Timestamp:
- 12/10/2016 11:38:04 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyseventeen/functions.php
r39373 r39561 170 170 'name' => __( 'Top Menu', 'twentyseventeen' ), 171 171 'items' => array( 172 ' page_home',172 'link_home', 173 173 'page_about', 174 174 'page_blog', -
trunk/src/wp-includes/theme.php
r39546 r39561 1966 1966 ), 1967 1967 '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. 1969 1974 'type' => 'post_type', 1970 1975 'object' => 'page', -
trunk/tests/phpunit/tests/customize/manager.php
r39560 r39561 351 351 'name' => 'Menu Name', 352 352 'items' => array( 353 ' page_home',353 'link_home', 354 354 'page_about', 355 355 'page_blog', … … 479 479 480 480 $this->assertEquals( -1, $changeset_values['nav_menu_locations[top]'] ); 481 $this->assertEquals( $posts_by_name['home'], $changeset_values['nav_menu_item[-1]']['object_id'] ); 481 $this->assertEquals( 0, $changeset_values['nav_menu_item[-1]']['object_id'] ); 482 $this->assertEquals( 'custom', $changeset_values['nav_menu_item[-1]']['type'] ); 483 $this->assertEquals( home_url(), $changeset_values['nav_menu_item[-1]']['url'] ); 482 484 483 485 $this->assertEmpty( $wp_customize->changeset_data() );
Note: See TracChangeset
for help on using the changeset viewer.