Make WordPress Core

Ticket #38551: 38551.1.patch

File 38551.1.patch, 1.2 KB (added by ocean90, 9 years ago)
  • src/wp-admin/includes/update-core.php

     
    746746        'themes/twentyseventeen/' => '4.7',
    747747);
    748748
    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 }
    753 
    754749/**
    755750 * Upgrades the core of WordPress.
    756751 *
     
    10371032                }
    10381033        }
    10391034
     1035        // If not explicitly defined as false, don't install new default themes for non-stable releases.
     1036        if ( ! $development_build && ( ! defined( 'CORE_UPGRADE_SKIP_NEW_BUNDLED' ) || CORE_UPGRADE_SKIP_NEW_BUNDLED ) ) {
     1037                $_new_bundled_files = array( 'plugins/akismet/' => '2.0' );
     1038        }
     1039
    10401040        // Copy New bundled plugins & themes
    10411041        // This gives us the ability to install new plugins & themes bundled with future versions of WordPress whilst avoiding the re-install upon upgrade issue.
    10421042        // $development_build controls us overwriting bundled themes and plugins when a non-stable release is being updated