Upgrade/Install: Enable all core autoupdates for new installs.
Likely needs more work for multisite installs. Reference: https://make.wordpress.org/core/2020/11/10/wp5-6-auto-update-implementation-change/ Props audrasjb, azaozz. See #51743. Built from https://develop.svn.wordpress.org/trunk@49581 git-svn-id: http://core.svn.wordpress.org/trunk@49319 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9115246f72
commit
d5fd3bd452
|
@ -535,6 +535,13 @@ function populate_options( array $options = array() ) {
|
|||
'disallowed_keys' => '',
|
||||
'comment_previously_approved' => 1,
|
||||
'auto_plugin_theme_update_emails' => array(),
|
||||
|
||||
// 5.6.0
|
||||
'auto_update_core_dev' => 'enabled',
|
||||
'auto_update_core_minor' => 'enabled',
|
||||
// Default to enabled for new installs.
|
||||
// See https://core.trac.wordpress.org/ticket/51742.
|
||||
'auto_update_core_major' => 'enabled',
|
||||
);
|
||||
|
||||
// 3.3.0
|
||||
|
|
|
@ -2255,6 +2255,11 @@ function upgrade_560() {
|
|||
if ( ! is_null( $post_category_exists ) ) {
|
||||
$wpdb->query( "ALTER TABLE $wpdb->posts DROP COLUMN `post_category`" );
|
||||
}
|
||||
|
||||
// When upgrading from WP < 5.6.0 set the core major auto-updates option to `unset` by default.
|
||||
// This overrides the same option from populate_options() that is intended for new installs.
|
||||
// See https://core.trac.wordpress.org/ticket/51742.
|
||||
update_option( 'auto_update_core_major', 'unset' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.6-beta3-49580';
|
||||
$wp_version = '5.6-beta3-49581';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue