Bundled Themes: Make Twenty Twenty-One the default theme.

After being imported in [49216], Twenty Twenty-One can now be set as the default theme in WordPress.

See #48110.

git-svn-id: https://develop.svn.wordpress.org/trunk@49220 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jonathan Desrosiers 2020-10-20 02:02:37 +00:00
parent 9943059356
commit 029dd1bbb9
6 changed files with 11 additions and 8 deletions

View File

@ -246,15 +246,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 Twenty'.
* @type string $slug Theme slug, e.g. 'twentytwenty'.
* @type string $name Theme name, e.g. 'Twenty Twenty-One'.
* @type string $slug Theme slug, e.g. 'twentytwentyone'.
* @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. 'https://2020.wordpress.net/'.
* @type string $screenshot_url Screenshot URL, e.g. 'https://wordpress.org/themes/twentytwenty/'.
* @type string $preview_url Preview URL, e.g. 'https://2021.wordpress.net/'.
* @type string $screenshot_url Screenshot URL, e.g. 'https://wordpress.org/themes/twentytwentyone/'.
* @type float $rating Rating score.
* @type int $num_ratings The number of ratings.
* @type string $homepage Theme homepage, e.g. 'https://wordpress.org/themes/twentytwenty/'.
* @type string $homepage Theme homepage, e.g. 'https://wordpress.org/themes/twentytwentyone/'.
* @type string $description Theme description.
* @type string $download_link Theme ZIP download URL.
* }

View File

@ -835,6 +835,7 @@ $_new_bundled_files = array(
'themes/twentyseventeen/' => '4.7',
'themes/twentynineteen/' => '5.0',
'themes/twentytwenty/' => '5.3',
'themes/twentytwentyone/' => '5.6',
);
/**

View File

@ -596,8 +596,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 &#8220;Navigation Menu&#8221; widget on the <a href="%1$s">Widgets</a> 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 Nineteen',
'Twenty Twenty'
'Twenty Twenty',
'Twenty Twenty-One'
) . '</p>';
$overview .= '<p>' . __( 'From this screen you can:' ) . '</p>';
$overview .= '<ul><li>' . __( 'Create, edit, and delete menus' ) . '</li>';

View File

@ -59,6 +59,7 @@ final class WP_Theme implements ArrayAccess {
'twentyseventeen' => 'Twenty Seventeen',
'twentynineteen' => 'Twenty Nineteen',
'twentytwenty' => 'Twenty Twenty',
'twentytwentyone' => 'Twenty Twenty-One',
);
/**

View File

@ -409,7 +409,7 @@ function wp_templating_constants() {
* @see WP_Theme::get_core_default_theme()
*/
if ( ! defined( 'WP_DEFAULT_THEME' ) ) {
define( 'WP_DEFAULT_THEME', 'twentytwenty' );
define( 'WP_DEFAULT_THEME', 'twentytwentyone' );
}
}

View File

@ -19,6 +19,7 @@ class Tests_Theme extends WP_UnitTestCase {
'twentyseventeen',
'twentynineteen',
'twentytwenty',
'twentytwentyone',
);
function setUp() {