Make WordPress Core

Changeset 46278


Ignore:
Timestamp:
09/23/2019 08:59:48 PM (5 years ago)
Author:
desrosj
Message:

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.

Location:
trunk
Files:
8 edited

Legend:

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

    r45932 r46278  
    242242     *     An object that contains theme data returned by the WordPress.org API.
    243243     *
    244      *     @type string $name           Theme name, e.g. 'Twenty Nineteen'.
    245      *     @type string $slug           Theme slug, e.g. 'twentynineteen'.
     244     *     @type string $name           Theme name, e.g. 'Twenty Twenty'.
     245     *     @type string $slug           Theme slug, e.g. 'twentytwenty'.
    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://2019.wordpress.net/'.
    249      *     @type string $screenshot_url Screenshot URL, e.g. 'https://wordpress.org/themes/twentynineteen/'.
     248     *     @type string $preview_url    Preview URL, e.g. 'http://2020.wordpress.net/'.
     249     *     @type string $screenshot_url Screenshot URL, e.g. 'https://wordpress.org/themes/twentytwenty/'.
    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/twentynineteen/'.
     252     *     @type string $homepage       Theme homepage, e.g. 'https://wordpress.org/themes/twentytwenty/'.
    253253     *     @type string $description    Theme description.
    254254     *     @type string $download_link  Theme ZIP download URL.
  • trunk/src/wp-admin/includes/update-core.php

    r46167 r46278  
    826826    'themes/twentyseventeen/' => '4.7',
    827827    'themes/twentynineteen/'  => '5.0',
     828    'themes/twentytwenty/'    => '5.3',
    828829);
    829830
  • trunk/src/wp-admin/includes/upgrade.php

    r46194 r46278  
    447447            array(
    448448                'wp_inactive_widgets' => array(),
    449                 'sidebar-1'           => array(
     449                'footer-one'          => array(
    450450                    0 => 'search-2',
    451451                    1 => 'recent-posts-2',
    452452                    2 => 'recent-comments-2',
    453                     3 => 'archives-2',
    454                     4 => 'categories-2',
    455                     5 => 'meta-2',
     453                ),
     454                'footer-two'          => array(
     455                    0 => 'archives-2',
     456                    1 => 'categories-2',
     457                    2 => 'meta-2',
    456458                ),
    457459                'array_version'       => 3,
  • trunk/src/wp-admin/nav-menus.php

    r45932 r46278  
    543543            __( '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.' ),
    544544        admin_url( 'widgets.php' ),
    545         'Twenty Seventeen',
    546         'Twenty Nineteen'
     545        'Twenty Nineteen',
     546        'Twenty Twenty'
    547547    ) . '</p>';
    548548    $overview .= '<p>' . __( 'From this screen you can:' ) . '</p>';
  • trunk/src/wp-includes/class-wp-theme.php

    r46226 r46278  
    5555        'twentyseventeen' => 'Twenty Seventeen',
    5656        'twentynineteen'  => 'Twenty Nineteen',
     57        'twentytwenty'    => 'Twenty Twenty',
    5758    );
    5859
  • trunk/src/wp-includes/default-constants.php

    r45611 r46278  
    405405     */
    406406    if ( ! defined( 'WP_DEFAULT_THEME' ) ) {
    407         define( 'WP_DEFAULT_THEME', 'twentynineteen' );
    408     }
    409 
    410 }
     407        define( 'WP_DEFAULT_THEME', 'twentytwenty' );
     408    }
     409
     410}
  • trunk/tests/phpunit/tests/customize/widgets.php

    r44151 r46278  
    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' ), array_keys( wp_get_sidebars_widgets() ) );
     35        $this->assertEqualSets( array( 'wp_inactive_widgets', 'footer-one', 'footer-two' ), 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

    r45607 r46278  
    1919        'twentyseventeen',
    2020        'twentynineteen',
     21        'twentytwenty',
    2122    );
    2223
Note: See TracChangeset for help on using the changeset viewer.