WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/01/2016 01:23:17 AM (4 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.

File:
1 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/**
Note: See TracChangeset for help on using the changeset viewer.