Make WordPress Core

Changeset 39064


Ignore:
Timestamp:
11/01/2016 01:23:17 AM (8 years ago)
Author:
dd32
Message:

Upgrade: Install new themes upon upgrade again.
This partially reverts [35738], which has shown to provide a bad user experience for users seeking to experiment with TwentySeventeen.

This will result in TwentySixteen being installed in addition to TwentySeventeen.

See #38551.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/update-core.php

    r38922 r39064  
    726726 *
    727727 * @since 3.2.0
    728  * @since 4.4.0 New themes are not automatically installed on upgrade.
    729  *              This can still be explicitly asked for by defining
     728 * @since 4.7.0 New themes were not automatically installed for 4.4-4.6 on
     729 *              upgrade. New themes are now installed again. To disable new
     730 *              themes from being installed on upgrade, explicitly define
    730731 *              CORE_UPGRADE_SKIP_NEW_BUNDLED as false.
    731732 * @global array $_new_bundled_files
     
    746747    'themes/twentyseventeen/' => '4.7',
    747748);
    748 
    749 // If not explicitly defined as false, don't install new default themes.
    750 if ( ! defined( 'CORE_UPGRADE_SKIP_NEW_BUNDLED' ) || CORE_UPGRADE_SKIP_NEW_BUNDLED ) {
    751     $_new_bundled_files = array( 'plugins/akismet/' => '2.0' );
    752 }
    753749
    754750/**
  • trunk/tests/phpunit/tests/theme.php

    r38907 r39064  
    188188     */
    189189    function test_default_theme_in_default_theme_list() {
    190         $this->markTestSkipped( 'Core repository inclusion was stopped after Twenty Fifteen' );
    191190        if ( 'twenty' === substr( WP_DEFAULT_THEME, 0, 6 ) ) {
    192191            $this->assertContains( WP_DEFAULT_THEME, $this->default_themes );
Note: See TracChangeset for help on using the changeset viewer.