diff --git a/src/wp-includes/theme.php b/src/wp-includes/theme.php index bf53205c20..fdf5a34446 100644 --- a/src/wp-includes/theme.php +++ b/src/wp-includes/theme.php @@ -1984,7 +1984,7 @@ function get_theme_starter_content() { 'link_home' => array( 'type' => 'custom', 'title' => _x( 'Home', 'Theme starter content' ), - 'url' => home_url(), + 'url' => home_url( '/' ), ), 'page_home' => array( // Deprecated in favor of link_home. 'type' => 'post_type', diff --git a/tests/phpunit/tests/customize/manager.php b/tests/phpunit/tests/customize/manager.php index 3927ce345c..16d1e4a615 100644 --- a/tests/phpunit/tests/customize/manager.php +++ b/tests/phpunit/tests/customize/manager.php @@ -490,7 +490,7 @@ class Tests_WP_Customize_Manager extends WP_UnitTestCase { $this->assertEquals( -1, $changeset_values['nav_menu_locations[top]'] ); $this->assertEquals( 0, $changeset_values['nav_menu_item[-1]']['object_id'] ); $this->assertEquals( 'custom', $changeset_values['nav_menu_item[-1]']['type'] ); - $this->assertEquals( home_url(), $changeset_values['nav_menu_item[-1]']['url'] ); + $this->assertEquals( home_url( '/' ), $changeset_values['nav_menu_item[-1]']['url'] ); $this->assertEmpty( $wp_customize->changeset_data() ); $this->assertNull( $wp_customize->changeset_post_id() );