From 2d9ac64c9f661aca2cf7d99ec258ac2281e3edff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Helen=20Hou-Sand=C3=AD?= Date: Wed, 16 Nov 2016 00:40:32 +0000 Subject: [PATCH] Theme starter content: Add reference IDs for most default widgets. Some widgets that require more configuration are not included, such as RSS and Custom Menu. Tag Cloud is also not included because fresh sites do not have any tags to display. Also adds a search widget to a Twenty Seventeen footer widget area. see #38615. Built from https://develop.svn.wordpress.org/trunk@39261 git-svn-id: http://core.svn.wordpress.org/trunk@39201 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../themes/twentyseventeen/functions.php | 1 + wp-includes/theme.php | 24 ++++++++++++++++--- wp-includes/version.php | 2 +- 3 files changed, 23 insertions(+), 4 deletions(-) diff --git a/wp-content/themes/twentyseventeen/functions.php b/wp-content/themes/twentyseventeen/functions.php index fe155f8f41..b06649443e 100644 --- a/wp-content/themes/twentyseventeen/functions.php +++ b/wp-content/themes/twentyseventeen/functions.php @@ -117,6 +117,7 @@ function twentyseventeen_setup() { 'sidebar-3' => array( 'text_about', + 'search', ), ), diff --git a/wp-includes/theme.php b/wp-includes/theme.php index e237b62788..6401efda00 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -1835,13 +1835,31 @@ function get_theme_starter_content() { _x( 'Monday—Friday: 9:00AM–5:00PM', 'Theme starter content' ) . '
' . _x( 'Saturday & Sunday: 11:00AM–3:00PM', 'Theme starter content' ) . '

' ) ), ) ), - 'search' => array( 'search', array( - 'title' => _x( 'Site Search', 'Theme starter content' ), - ) ), 'text_about' => array( 'text', array( 'title' => _x( 'About This Site', 'Theme starter content' ), 'text' => _x( 'This may be a good place to introduce yourself and your site or include some credits.', 'Theme starter content' ), ) ), + 'archives' => array( 'archives', array( + 'title' => _x( 'Archives', 'Theme starter content' ), + ) ), + 'calendar' => array( 'calendar', array( + 'title' => _x( 'Calendar', 'Theme starter content' ), + ) ), + 'categories' => array( 'categories', array( + 'title' => _x( 'Categories', 'Theme starter content' ), + ) ), + 'meta' => array( 'meta', array( + 'title' => _x( 'Meta', 'Theme starter content' ), + ) ), + 'recent-comments' => array( 'recent-comments', array( + 'title' => _x( 'Recent Comments', 'Theme starter content' ), + ) ), + 'recent-posts' => array( 'recent-posts', array( + 'title' => _x( 'Recent Posts', 'Theme starter content' ), + ) ), + 'search' => array( 'search', array( + 'title' => _x( 'Search', 'Theme starter content' ), + ) ), ), 'nav_menus' => array( 'page_home' => array( diff --git a/wp-includes/version.php b/wp-includes/version.php index 2aae75c913..c45f435b47 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-beta3-39260'; +$wp_version = '4.7-beta3-39261'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.