WordPress.org

Make WordPress Core

Changeset 49220


Ignore:
Timestamp:
10/20/2020 02:02:37 AM (3 months ago)
Author:
desrosj
Message:

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.

Location:
trunk
Files:
6 edited

Legend:

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

    r48520 r49220  
    247247     *     An object that contains theme data returned by the WordPress.org API.
    248248     *
    249      *     @type string $name           Theme name, e.g. 'Twenty Twenty'.
    250      *     @type string $slug           Theme slug, e.g. 'twentytwenty'.
     249     *     @type string $name           Theme name, e.g. 'Twenty Twenty-One'.
     250     *     @type string $slug           Theme slug, e.g. 'twentytwentyone'.
    251251     *     @type string $version        Theme version, e.g. '1.1'.
    252252     *     @type string $author         Theme author username, e.g. 'melchoyce'.
    253      *     @type string $preview_url    Preview URL, e.g. 'https://2020.wordpress.net/'.
    254      *     @type string $screenshot_url Screenshot URL, e.g. 'https://wordpress.org/themes/twentytwenty/'.
     253     *     @type string $preview_url    Preview URL, e.g. 'https://2021.wordpress.net/'.
     254     *     @type string $screenshot_url Screenshot URL, e.g. 'https://wordpress.org/themes/twentytwentyone/'.
    255255     *     @type float  $rating         Rating score.
    256256     *     @type int    $num_ratings    The number of ratings.
    257      *     @type string $homepage       Theme homepage, e.g. 'https://wordpress.org/themes/twentytwenty/'.
     257     *     @type string $homepage       Theme homepage, e.g. 'https://wordpress.org/themes/twentytwentyone/'.
    258258     *     @type string $description    Theme description.
    259259     *     @type string $download_link  Theme ZIP download URL.
  • trunk/src/wp-admin/includes/update-core.php

    r48589 r49220  
    836836    'themes/twentynineteen/'  => '5.0',
    837837    'themes/twentytwenty/'    => '5.3',
     838    'themes/twentytwentyone/' => '5.6',
    838839);
    839840
  • trunk/src/wp-admin/nav-menus.php

    r49108 r49220  
    597597        __( '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.' ),
    598598        admin_url( 'widgets.php' ),
    599         'Twenty Nineteen',
    600         'Twenty Twenty'
     599        'Twenty Twenty',
     600        'Twenty Twenty-One'
    601601    ) . '</p>';
    602602    $overview .= '<p>' . __( 'From this screen you can:' ) . '</p>';
  • trunk/src/wp-includes/class-wp-theme.php

    r48590 r49220  
    6060        'twentynineteen'  => 'Twenty Nineteen',
    6161        'twentytwenty'    => 'Twenty Twenty',
     62        'twentytwentyone' => 'Twenty Twenty-One',
    6263    );
    6364
  • trunk/src/wp-includes/default-constants.php

    r48971 r49220  
    410410     */
    411411    if ( ! defined( 'WP_DEFAULT_THEME' ) ) {
    412         define( 'WP_DEFAULT_THEME', 'twentytwenty' );
    413     }
    414 
    415 }
     412        define( 'WP_DEFAULT_THEME', 'twentytwentyone' );
     413    }
     414
     415}
  • trunk/tests/phpunit/tests/theme.php

    r49033 r49220  
    2020        'twentynineteen',
    2121        'twentytwenty',
     22        'twentytwentyone',
    2223    );
    2324
Note: See TracChangeset for help on using the changeset viewer.