Make WordPress Core

Changeset 44151 for trunk


Ignore:
Timestamp:
12/14/2018 02:48:14 AM (6 years ago)
Author:
pento
Message:

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.

Location:
trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/wp-admin/includes/class-wp-theme-install-list-table.php

    r43571 r44151  
    242242     *     An object that contains theme data returned by the WordPress.org API.
    243243     *
    244      *     @type string $name           Theme name, e.g. 'Twenty Seventeen'.
    245      *     @type string $slug           Theme slug, e.g. 'twentyseventeen'.
     244     *     @type string $name           Theme name, e.g. 'Twenty Nineteen'.
     245     *     @type string $slug           Theme slug, e.g. 'twentynineteen'.
    246246     *     @type string $version        Theme version, e.g. '1.1'.
    247247     *     @type string $author         Theme author username, e.g. 'melchoyce'.
    248      *     @type string $preview_url    Preview URL, e.g. 'http://2017.wordpress.net/'.
    249      *     @type string $screenshot_url Screenshot URL, e.g. 'https://wordpress.org/themes/twentyseventeen/'.
     248     *     @type string $preview_url    Preview URL, e.g. 'http://2019.wordpress.net/'.
     249     *     @type string $screenshot_url Screenshot URL, e.g. 'https://wordpress.org/themes/twentynineteen/'.
    250250     *     @type float  $rating         Rating score.
    251251     *     @type int    $num_ratings    The number of ratings.
    252      *     @type string $homepage       Theme homepage, e.g. 'https://wordpress.org/themes/twentyseventeen/'.
     252     *     @type string $homepage       Theme homepage, e.g. 'https://wordpress.org/themes/twentynineteen/'.
    253253     *     @type string $description    Theme description.
    254254     *     @type string $download_link  Theme ZIP download URL.
  • trunk/src/wp-admin/includes/update-core.php

    r42777 r44151  
    817817    'themes/twentysixteen/'   => '4.4',
    818818    'themes/twentyseventeen/' => '4.7',
     819    'themes/twentynineteen/'  => '5.0',
    819820);
    820821
  • trunk/src/wp-admin/includes/upgrade.php

    r44125 r44151  
    435435                    5 => 'meta-2',
    436436                ),
    437                 'sidebar-2'           => array(),
    438                 'sidebar-3'           => array(),
    439437                'array_version'       => 3,
    440438            )
  • trunk/src/wp-admin/nav-menus.php

    r43571 r44151  
    536536    $overview = '<p>' . __( 'This screen is used for managing your navigation menus.' ) . '</p>';
    537537    /* translators: 1: Widgets admin screen URL, 2 and 3: The name of the default themes */
    538     $overview .= '<p>' . sprintf( __( '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 Sixteen', 'Twenty Seventeen' ) . '</p>';
     538    $overview .= '<p>' . sprintf( __( '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 Seventeen', 'Twenty Nineteen' ) . '</p>';
    539539    $overview .= '<p>' . __( 'From this screen you can:' ) . '</p>';
    540540    $overview .= '<ul><li>' . __( 'Create, edit, and delete menus' ) . '</li>';
  • trunk/src/wp-includes/class-wp-theme.php

    r43571 r44151  
    5454        'twentysixteen'   => 'Twenty Sixteen',
    5555        'twentyseventeen' => 'Twenty Seventeen',
     56        'twentynineteen'  => 'Twenty Nineteen',
    5657    );
    5758
  • trunk/src/wp-includes/default-constants.php

    r42683 r44151  
    393393     */
    394394    if ( ! defined( 'WP_DEFAULT_THEME' ) ) {
    395         define( 'WP_DEFAULT_THEME', 'twentyseventeen' );
    396     }
    397 
    398 }
     395        define( 'WP_DEFAULT_THEME', 'twentynineteen' );
     396    }
     397
     398}
  • trunk/tests/phpunit/tests/customize/widgets.php

    r42343 r44151  
    3333        unset( $GLOBALS['_wp_sidebars_widgets'] ); // clear out cache set by wp_get_sidebars_widgets()
    3434        $sidebars_widgets = wp_get_sidebars_widgets();
    35         $this->assertEqualSets( array( 'wp_inactive_widgets', 'sidebar-1', 'sidebar-2', 'sidebar-3' ), array_keys( wp_get_sidebars_widgets() ) );
     35        $this->assertEqualSets( array( 'wp_inactive_widgets', 'sidebar-1' ), array_keys( wp_get_sidebars_widgets() ) );
    3636        $this->assertContains( 'search-2', $sidebars_widgets['sidebar-1'] );
    3737        $this->assertContains( 'categories-2', $sidebars_widgets['sidebar-1'] );
  • trunk/tests/phpunit/tests/theme.php

    r43571 r44151  
    1818        'twentysixteen',
    1919        'twentyseventeen',
     20        'twentynineteen',
    2021    );
    2122
Note: See TracChangeset for help on using the changeset viewer.