From 51d04a18dcb13bb7c212cd8f8e13d34c9319b94b Mon Sep 17 00:00:00 2001 From: Aaron Jorbin Date: Tue, 23 Oct 2018 16:50:33 +0000 Subject: [PATCH] Bundled Theme: Make twentynineteen the default theme. After [43808], we can now make twentynineteen the default theme. Twentyseventeen has been a great default, but 5.0 and twentynineteen is guten. Fixes #45152. git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43809 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/update-core.php | 1 + src/wp-includes/class-wp-theme.php | 1 + src/wp-includes/default-constants.php | 2 +- tests/phpunit/tests/theme.php | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/includes/update-core.php b/src/wp-admin/includes/update-core.php index e60ec37529..e0b05d6a6d 100644 --- a/src/wp-admin/includes/update-core.php +++ b/src/wp-admin/includes/update-core.php @@ -814,6 +814,7 @@ $_new_bundled_files = array( 'themes/twentyfifteen/' => '4.1', 'themes/twentysixteen/' => '4.4', 'themes/twentyseventeen/' => '4.7', + 'themes/twentynineteen/' => '5.0', ); /** diff --git a/src/wp-includes/class-wp-theme.php b/src/wp-includes/class-wp-theme.php index b53bdcc54c..13ee4b65bb 100644 --- a/src/wp-includes/class-wp-theme.php +++ b/src/wp-includes/class-wp-theme.php @@ -55,6 +55,7 @@ final class WP_Theme implements ArrayAccess { 'twentyfifteen' => 'Twenty Fifteen', 'twentysixteen' => 'Twenty Sixteen', 'twentyseventeen' => 'Twenty Seventeen', + 'twentynineteen' => 'Twenty Nineteen', ); /** diff --git a/src/wp-includes/default-constants.php b/src/wp-includes/default-constants.php index 94da94d2c3..ba6db444be 100644 --- a/src/wp-includes/default-constants.php +++ b/src/wp-includes/default-constants.php @@ -358,6 +358,6 @@ function wp_templating_constants() { * @see WP_Theme::get_core_default_theme() */ if ( !defined('WP_DEFAULT_THEME') ) - define( 'WP_DEFAULT_THEME', 'twentyseventeen' ); + define( 'WP_DEFAULT_THEME', 'twentynineteen' ); } diff --git a/tests/phpunit/tests/theme.php b/tests/phpunit/tests/theme.php index 141763179e..2e67c9bb20 100644 --- a/tests/phpunit/tests/theme.php +++ b/tests/phpunit/tests/theme.php @@ -11,6 +11,7 @@ class Tests_Theme extends WP_UnitTestCase { protected $default_themes = array( 'twentyten', 'twentyeleven', 'twentytwelve', 'twentythirteen', 'twentyfourteen', 'twentyfifteen', 'twentysixteen', 'twentyseventeen', + 'twentynineteen', ); function setUp() {