Bundled Themes: Make twentynineteen the default theme.
After [44149], we can now make twentynineteen the default theme. Twentyseventeen has been a great default, but 5.0 and twentynineteen is guten. Merges [43809,43954] from the 5.0 branch to trunk. Fixes #45152. Props jorbin, SergeyBiryukov, pento, mcsf. Built from https://develop.svn.wordpress.org/trunk@44151 git-svn-id: http://core.svn.wordpress.org/trunk@43981 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c3e927d2c8
commit
5e62e6b203
|
@ -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 Seventeen'.
|
||||
* @type string $slug Theme slug, e.g. 'twentyseventeen'.
|
||||
* @type string $name Theme name, e.g. 'Twenty Nineteen'.
|
||||
* @type string $slug Theme slug, e.g. 'twentynineteen'.
|
||||
* @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://2017.wordpress.net/'.
|
||||
* @type string $screenshot_url Screenshot URL, e.g. 'https://wordpress.org/themes/twentyseventeen/'.
|
||||
* @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 float $rating Rating score.
|
||||
* @type int $num_ratings The number of ratings.
|
||||
* @type string $homepage Theme homepage, e.g. 'https://wordpress.org/themes/twentyseventeen/'.
|
||||
* @type string $homepage Theme homepage, e.g. 'https://wordpress.org/themes/twentynineteen/'.
|
||||
* @type string $description Theme description.
|
||||
* @type string $download_link Theme ZIP download URL.
|
||||
* }
|
||||
|
|
|
@ -816,6 +816,7 @@ $_new_bundled_files = array(
|
|||
'themes/twentyfifteen/' => '4.1',
|
||||
'themes/twentysixteen/' => '4.4',
|
||||
'themes/twentyseventeen/' => '4.7',
|
||||
'themes/twentynineteen/' => '5.0',
|
||||
);
|
||||
|
||||
/**
|
||||
|
|
|
@ -434,8 +434,6 @@ As a new WordPress user, you should go to <a href=\"%s\">your dashboard</a> to d
|
|||
4 => 'categories-2',
|
||||
5 => 'meta-2',
|
||||
),
|
||||
'sidebar-2' => array(),
|
||||
'sidebar-3' => array(),
|
||||
'array_version' => 3,
|
||||
)
|
||||
);
|
||||
|
|
|
@ -535,7 +535,7 @@ if ( ! current_theme_supports( 'menus' ) && ! $num_locations ) {
|
|||
if ( ! $locations_screen ) : // Main tab
|
||||
$overview = '<p>' . __( 'This screen is used for managing your navigation menus.' ) . '</p>';
|
||||
/* translators: 1: Widgets admin screen URL, 2 and 3: The name of the default themes */
|
||||
$overview .= '<p>' . sprintf( __( 'Menus can be displayed in locations defined by your theme, even used in sidebars by adding a “Navigation Menu” 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 Sixteen', 'Twenty Seventeen' ) . '</p>';
|
||||
$overview .= '<p>' . sprintf( __( 'Menus can be displayed in locations defined by your theme, even used in sidebars by adding a “Navigation Menu” 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 Seventeen', 'Twenty Nineteen' ) . '</p>';
|
||||
$overview .= '<p>' . __( 'From this screen you can:' ) . '</p>';
|
||||
$overview .= '<ul><li>' . __( 'Create, edit, and delete menus' ) . '</li>';
|
||||
$overview .= '<li>' . __( 'Add, organize, and modify individual menu items' ) . '</li></ul>';
|
||||
|
|
|
@ -53,6 +53,7 @@ final class WP_Theme implements ArrayAccess {
|
|||
'twentyfifteen' => 'Twenty Fifteen',
|
||||
'twentysixteen' => 'Twenty Sixteen',
|
||||
'twentyseventeen' => 'Twenty Seventeen',
|
||||
'twentynineteen' => 'Twenty Nineteen',
|
||||
);
|
||||
|
||||
/**
|
||||
|
|
|
@ -392,7 +392,7 @@ 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' );
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.1-alpha-44150';
|
||||
$wp_version = '5.1-alpha-44151';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue