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.
Built from https://develop.svn.wordpress.org/trunk@49220


git-svn-id: http://core.svn.wordpress.org/trunk@48982 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
desrosj 2020-10-20 02:04:07 +00:00
parent 9c82dfada2
commit d2fb6101c4
6 changed files with 11 additions and 9 deletions

View File

@ -246,15 +246,15 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table {
* @param object $theme { * @param object $theme {
* An object that contains theme data returned by the WordPress.org API. * An object that contains theme data returned by the WordPress.org API.
* *
* @type string $name Theme name, e.g. 'Twenty Twenty'. * @type string $name Theme name, e.g. 'Twenty Twenty-One'.
* @type string $slug Theme slug, e.g. 'twentytwenty'. * @type string $slug Theme slug, e.g. 'twentytwentyone'.
* @type string $version Theme version, e.g. '1.1'. * @type string $version Theme version, e.g. '1.1'.
* @type string $author Theme author username, e.g. 'melchoyce'. * @type string $author Theme author username, e.g. 'melchoyce'.
* @type string $preview_url Preview URL, e.g. 'https://2020.wordpress.net/'. * @type string $preview_url Preview URL, e.g. 'https://2021.wordpress.net/'.
* @type string $screenshot_url Screenshot URL, e.g. 'https://wordpress.org/themes/twentytwenty/'. * @type string $screenshot_url Screenshot URL, e.g. 'https://wordpress.org/themes/twentytwentyone/'.
* @type float $rating Rating score. * @type float $rating Rating score.
* @type int $num_ratings The number of ratings. * @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 $description Theme description.
* @type string $download_link Theme ZIP download URL. * @type string $download_link Theme ZIP download URL.
* } * }

View File

@ -835,6 +835,7 @@ $_new_bundled_files = array(
'themes/twentyseventeen/' => '4.7', 'themes/twentyseventeen/' => '4.7',
'themes/twentynineteen/' => '5.0', 'themes/twentynineteen/' => '5.0',
'themes/twentytwenty/' => '5.3', '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. */ /* 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.' ), __( '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' ), admin_url( 'widgets.php' ),
'Twenty Nineteen', 'Twenty Twenty',
'Twenty Twenty' 'Twenty Twenty-One'
) . '</p>'; ) . '</p>';
$overview .= '<p>' . __( 'From this screen you can:' ) . '</p>'; $overview .= '<p>' . __( 'From this screen you can:' ) . '</p>';
$overview .= '<ul><li>' . __( 'Create, edit, and delete menus' ) . '</li>'; $overview .= '<ul><li>' . __( 'Create, edit, and delete menus' ) . '</li>';

View File

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

View File

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

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.6-alpha-49219'; $wp_version = '5.6-alpha-49220';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.