From be7313f8c2cdcd1dde95a7f3313d28ce72cd3054 Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Wed, 10 Nov 2021 00:39:45 +0000 Subject: [PATCH] Themes: Twenty Twenty-Two is now the default theme. It's Friday night, and I feel alright. The party is here in the block theme. See #54318. git-svn-id: https://develop.svn.wordpress.org/trunk@52093 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 32664bf6ff..e411b817dc 100644 --- a/src/wp-admin/includes/update-core.php +++ b/src/wp-admin/includes/update-core.php @@ -864,6 +864,7 @@ $_new_bundled_files = array( 'themes/twentynineteen/' => '5.0', 'themes/twentytwenty/' => '5.3', 'themes/twentytwentyone/' => '5.6', + 'themes/twentytwentytwo/' => '5.9', ); /** diff --git a/src/wp-includes/class-wp-theme.php b/src/wp-includes/class-wp-theme.php index d0607528b5..6b7ddc8e26 100644 --- a/src/wp-includes/class-wp-theme.php +++ b/src/wp-includes/class-wp-theme.php @@ -70,6 +70,7 @@ final class WP_Theme implements ArrayAccess { 'twentynineteen' => 'Twenty Nineteen', 'twentytwenty' => 'Twenty Twenty', 'twentytwentyone' => 'Twenty Twenty-One', + 'twentytwentytwo' => 'Twenty Twenty-Two', ); /** diff --git a/src/wp-includes/default-constants.php b/src/wp-includes/default-constants.php index 21a855ad25..cd70ca5cf6 100644 --- a/src/wp-includes/default-constants.php +++ b/src/wp-includes/default-constants.php @@ -409,7 +409,7 @@ function wp_templating_constants() { * @see WP_Theme::get_core_default_theme() */ if ( ! defined( 'WP_DEFAULT_THEME' ) ) { - define( 'WP_DEFAULT_THEME', 'twentytwentyone' ); + define( 'WP_DEFAULT_THEME', 'twentytwentytwo' ); } } diff --git a/tests/phpunit/tests/theme.php b/tests/phpunit/tests/theme.php index 6c495ed023..32ca5dae36 100644 --- a/tests/phpunit/tests/theme.php +++ b/tests/phpunit/tests/theme.php @@ -20,6 +20,7 @@ class Tests_Theme extends WP_UnitTestCase { 'twentynineteen', 'twentytwenty', 'twentytwentyone', + 'twentytwentytwo', ); public function set_up() {