From 098455b06f136b3330f219a0df277babcf7aa885 Mon Sep 17 00:00:00 2001
From: desrosj
Date: Mon, 23 Sep 2019 21:00:58 +0000
Subject: [PATCH] Bundled Themes: Make Twenty Twenty the new default theme.
After being imported in [46271], Twenty Twenty can now be set as the default theme in WordPress.
See #48110.
Props desrosj, ocean90.
Built from https://develop.svn.wordpress.org/trunk@46278
git-svn-id: http://core.svn.wordpress.org/trunk@46090 1a063a9b-81f0-0310-95a4-ce76da25c4cd
---
.../includes/class-wp-theme-install-list-table.php | 10 +++++-----
wp-admin/includes/update-core.php | 1 +
wp-admin/includes/upgrade.php | 10 ++++++----
wp-admin/nav-menus.php | 4 ++--
wp-includes/class-wp-theme.php | 1 +
wp-includes/default-constants.php | 2 +-
wp-includes/version.php | 2 +-
7 files changed, 17 insertions(+), 13 deletions(-)
diff --git a/wp-admin/includes/class-wp-theme-install-list-table.php b/wp-admin/includes/class-wp-theme-install-list-table.php
index abf80d2fcc..ed6e12c381 100644
--- a/wp-admin/includes/class-wp-theme-install-list-table.php
+++ b/wp-admin/includes/class-wp-theme-install-list-table.php
@@ -241,15 +241,15 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table {
* @param object $theme {
* An object that contains theme data returned by the WordPress.org API.
*
- * @type string $name Theme name, e.g. 'Twenty Nineteen'.
- * @type string $slug Theme slug, e.g. 'twentynineteen'.
+ * @type string $name Theme name, e.g. 'Twenty Twenty'.
+ * @type string $slug Theme slug, e.g. 'twentytwenty'.
* @type string $version Theme version, e.g. '1.1'.
* @type string $author Theme author username, e.g. 'melchoyce'.
- * @type string $preview_url Preview URL, e.g. 'http://2019.wordpress.net/'.
- * @type string $screenshot_url Screenshot URL, e.g. 'https://wordpress.org/themes/twentynineteen/'.
+ * @type string $preview_url Preview URL, e.g. 'http://2020.wordpress.net/'.
+ * @type string $screenshot_url Screenshot URL, e.g. 'https://wordpress.org/themes/twentytwenty/'.
* @type float $rating Rating score.
* @type int $num_ratings The number of ratings.
- * @type string $homepage Theme homepage, e.g. 'https://wordpress.org/themes/twentynineteen/'.
+ * @type string $homepage Theme homepage, e.g. 'https://wordpress.org/themes/twentytwenty/'.
* @type string $description Theme description.
* @type string $download_link Theme ZIP download URL.
* }
diff --git a/wp-admin/includes/update-core.php b/wp-admin/includes/update-core.php
index e0ac9450ef..1cb915f858 100644
--- a/wp-admin/includes/update-core.php
+++ b/wp-admin/includes/update-core.php
@@ -825,6 +825,7 @@ $_new_bundled_files = array(
'themes/twentysixteen/' => '4.4',
'themes/twentyseventeen/' => '4.7',
'themes/twentynineteen/' => '5.0',
+ 'themes/twentytwenty/' => '5.3',
);
/**
diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php
index 5aa0f12882..5be2754c20 100644
--- a/wp-admin/includes/upgrade.php
+++ b/wp-admin/includes/upgrade.php
@@ -446,13 +446,15 @@ Commenter avatars come from Gravatar.'
'sidebars_widgets',
array(
'wp_inactive_widgets' => array(),
- 'sidebar-1' => array(
+ 'footer-one' => array(
0 => 'search-2',
1 => 'recent-posts-2',
2 => 'recent-comments-2',
- 3 => 'archives-2',
- 4 => 'categories-2',
- 5 => 'meta-2',
+ ),
+ 'footer-two' => array(
+ 0 => 'archives-2',
+ 1 => 'categories-2',
+ 2 => 'meta-2',
),
'array_version' => 3,
)
diff --git a/wp-admin/nav-menus.php b/wp-admin/nav-menus.php
index 3312a30443..0694ec8b6a 100644
--- a/wp-admin/nav-menus.php
+++ b/wp-admin/nav-menus.php
@@ -542,8 +542,8 @@ if ( ! $locations_screen ) : // Main tab
/* translators: 1: URL to Widgets screen, 2 and 3: The names of the default themes. */
__( 'Menus can be displayed in locations defined by your theme, even used in sidebars by adding a “Navigation Menu” widget on the Widgets screen. If your theme does not support the navigation menus feature (the default themes, %2$s and %3$s, do), you can learn about adding this support by following the Documentation link to the side.' ),
admin_url( 'widgets.php' ),
- 'Twenty Seventeen',
- 'Twenty Nineteen'
+ 'Twenty Nineteen',
+ 'Twenty Twenty'
) . '
';
$overview .= '' . __( 'From this screen you can:' ) . '
';
$overview .= '- ' . __( 'Create, edit, and delete menus' ) . '
';
diff --git a/wp-includes/class-wp-theme.php b/wp-includes/class-wp-theme.php
index 8a1d88e041..fe8dbb142b 100644
--- a/wp-includes/class-wp-theme.php
+++ b/wp-includes/class-wp-theme.php
@@ -54,6 +54,7 @@ final class WP_Theme implements ArrayAccess {
'twentysixteen' => 'Twenty Sixteen',
'twentyseventeen' => 'Twenty Seventeen',
'twentynineteen' => 'Twenty Nineteen',
+ 'twentytwenty' => 'Twenty Twenty',
);
/**
diff --git a/wp-includes/default-constants.php b/wp-includes/default-constants.php
index 6b55025ae6..0edf7f7468 100644
--- a/wp-includes/default-constants.php
+++ b/wp-includes/default-constants.php
@@ -404,7 +404,7 @@ function wp_templating_constants() {
* @see WP_Theme::get_core_default_theme()
*/
if ( ! defined( 'WP_DEFAULT_THEME' ) ) {
- define( 'WP_DEFAULT_THEME', 'twentynineteen' );
+ define( 'WP_DEFAULT_THEME', 'twentytwenty' );
}
}
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 267083dfeb..14b669182e 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
-$wp_version = '5.3-alpha-46277';
+$wp_version = '5.3-alpha-46278';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.