From 5d43d3a3533cce8894648159684c53b2bcdc650b Mon Sep 17 00:00:00 2001 From: Helen Hou-Sandi Date: Wed, 16 Nov 2016 00:39:47 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@39261 602fd350-edb4-49c9-b593-d223f7449a82 --- .../themes/twentyseventeen/functions.php | 1 + src/wp-includes/theme.php | 24 ++++++++++++++++--- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/src/wp-content/themes/twentyseventeen/functions.php b/src/wp-content/themes/twentyseventeen/functions.php index fe155f8f41..b06649443e 100644 --- a/src/wp-content/themes/twentyseventeen/functions.php +++ b/src/wp-content/themes/twentyseventeen/functions.php @@ -117,6 +117,7 @@ function twentyseventeen_setup() { 'sidebar-3' => array( 'text_about', + 'search', ), ), diff --git a/src/wp-includes/theme.php b/src/wp-includes/theme.php index e237b62788..6401efda00 100644 --- a/src/wp-includes/theme.php +++ b/src/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(