diff --git a/wp-admin/includes/class-core-upgrader.php b/wp-admin/includes/class-core-upgrader.php index 28e2855053..6ffb98a7ec 100644 --- a/wp-admin/includes/class-core-upgrader.php +++ b/wp-admin/includes/class-core-upgrader.php @@ -290,8 +290,7 @@ class Core_Upgrader extends WP_Upgrader { $upgrade_dev = false; $upgrade_minor = false; $upgrade_major = false; - } elseif ( - true === WP_AUTO_UPDATE_CORE + } elseif ( true === WP_AUTO_UPDATE_CORE || 'beta' === WP_AUTO_UPDATE_CORE || 'rc' === WP_AUTO_UPDATE_CORE ) { diff --git a/wp-admin/includes/class-wp-site-health-auto-updates.php b/wp-admin/includes/class-wp-site-health-auto-updates.php index 0bcdbf28d2..3483bfae91 100644 --- a/wp-admin/includes/class-wp-site-health-auto-updates.php +++ b/wp-admin/includes/class-wp-site-health-auto-updates.php @@ -27,7 +27,7 @@ class WP_Site_Health_Auto_Updates { */ public function run_tests() { $tests = array( - $this->test_constants( 'WP_AUTO_UPDATE_CORE', array( true, 'minor' ) ), + $this->test_constants( 'WP_AUTO_UPDATE_CORE', array( true, 'beta', 'rc', 'minor' ) ), $this->test_wp_version_check_attached(), $this->test_filters_automatic_updater_disabled(), $this->test_wp_automatic_updates_disabled(), diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php index 33abb3e003..e83f634ce0 100644 --- a/wp-admin/update-core.php +++ b/wp-admin/update-core.php @@ -322,13 +322,17 @@ function core_auto_updates_settings() { $upgrade_minor = get_site_option( 'auto_update_core_minor', true ); $upgrade_major = get_site_option( 'auto_update_core_major', false ); + // WP_AUTO_UPDATE_CORE = true (all), 'beta', 'rc', 'minor', false. if ( defined( 'WP_AUTO_UPDATE_CORE' ) ) { if ( false === WP_AUTO_UPDATE_CORE ) { // Defaults to turned off, unless a filter allows it. $upgrade_dev = false; $upgrade_minor = false; $upgrade_major = false; - } elseif ( true === WP_AUTO_UPDATE_CORE ) { + } elseif ( true === WP_AUTO_UPDATE_CORE + || 'beta' === WP_AUTO_UPDATE_CORE + || 'rc' === WP_AUTO_UPDATE_CORE + ) { // ALL updates for core. $upgrade_dev = true; $upgrade_minor = true; diff --git a/wp-includes/version.php b/wp-includes/version.php index 95cd00b9a8..4e601a7429 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-beta1-49291'; +$wp_version = '5.6-beta1-49292'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.