diff --git a/src/wp-admin/includes/class-core-upgrader.php b/src/wp-admin/includes/class-core-upgrader.php
index b57a13fd7b..0226f74289 100644
a
|
b
|
class Core_Upgrader extends WP_Upgrader { |
283 | 283 | $upgrade_minor = get_site_option( 'auto_update_core_minor', 'enabled' ) === 'enabled'; |
284 | 284 | $upgrade_major = get_site_option( 'auto_update_core_major', 'unset' ) === 'enabled'; |
285 | 285 | |
286 | | // WP_AUTO_UPDATE_CORE = true (all), 'beta', 'rc', 'minor', false. |
| 286 | // WP_AUTO_UPDATE_CORE = true (all), 'beta', 'rc', 'development', 'minor', false. |
287 | 287 | if ( defined( 'WP_AUTO_UPDATE_CORE' ) ) { |
288 | 288 | if ( false === WP_AUTO_UPDATE_CORE ) { |
289 | 289 | // Defaults to turned off, unless a filter allows it. |
… |
… |
class Core_Upgrader extends WP_Upgrader { |
293 | 293 | } elseif ( true === WP_AUTO_UPDATE_CORE |
294 | 294 | || 'beta' === WP_AUTO_UPDATE_CORE |
295 | 295 | || 'rc' === WP_AUTO_UPDATE_CORE |
| 296 | || 'development' === WP_AUTO_UPDATE_CORE |
296 | 297 | ) { |
297 | 298 | // ALL updates for core. |
298 | 299 | $upgrade_dev = true; |
diff --git a/src/wp-admin/includes/class-wp-site-health-auto-updates.php b/src/wp-admin/includes/class-wp-site-health-auto-updates.php
index 33003a1c89..334f76f0cd 100644
a
|
b
|
class WP_Site_Health_Auto_Updates { |
27 | 27 | */ |
28 | 28 | public function run_tests() { |
29 | 29 | $tests = array( |
30 | | $this->test_constants( 'WP_AUTO_UPDATE_CORE', array( true, 'beta', 'rc', 'minor' ) ), |
| 30 | $this->test_constants( 'WP_AUTO_UPDATE_CORE', array( true, 'beta', 'rc', 'development', 'minor' ) ), |
31 | 31 | $this->test_wp_version_check_attached(), |
32 | 32 | $this->test_filters_automatic_updater_disabled(), |
33 | 33 | $this->test_wp_automatic_updates_disabled(), |
diff --git a/src/wp-admin/update-core.php b/src/wp-admin/update-core.php
index 2979d69996..19012c8174 100644
a
|
b
|
function core_auto_updates_settings() { |
306 | 306 | $upgrade_major = get_site_option( 'auto_update_core_major', 'unset' ) === 'enabled'; |
307 | 307 | |
308 | 308 | $can_set_update_option = true; |
309 | | // WP_AUTO_UPDATE_CORE = true (all), 'beta', 'rc', 'minor', false. |
| 309 | // WP_AUTO_UPDATE_CORE = true (all), 'beta', 'rc', 'development', 'minor', false. |
310 | 310 | if ( defined( 'WP_AUTO_UPDATE_CORE' ) ) { |
311 | 311 | if ( false === WP_AUTO_UPDATE_CORE ) { |
312 | 312 | // Defaults to turned off, unless a filter allows it. |
… |
… |
function core_auto_updates_settings() { |
316 | 316 | } elseif ( true === WP_AUTO_UPDATE_CORE |
317 | 317 | || 'beta' === WP_AUTO_UPDATE_CORE |
318 | 318 | || 'rc' === WP_AUTO_UPDATE_CORE |
| 319 | || 'development' === WP_AUTO_UPDATE_CORE |
319 | 320 | ) { |
320 | 321 | // ALL updates for core. |
321 | 322 | $upgrade_dev = true; |
diff --git a/src/wp-includes/update.php b/src/wp-includes/update.php
index c632b8405a..bc10a3d91d 100644
a
|
b
|
function wp_version_check( $extra_stats = array(), $force_check = false ) { |
136 | 136 | $post_body = array_merge( $post_body, $extra_stats ); |
137 | 137 | } |
138 | 138 | |
139 | | // Allow for WP_AUTO_UPDATE_CORE to specify beta/RC releases. |
140 | | if ( defined( 'WP_AUTO_UPDATE_CORE' ) && in_array( WP_AUTO_UPDATE_CORE, array( 'beta', 'rc' ), true ) ) { |
| 139 | // Allow for WP_AUTO_UPDATE_CORE to specify beta/RC/development releases. |
| 140 | if ( defined( 'WP_AUTO_UPDATE_CORE' ) && in_array( WP_AUTO_UPDATE_CORE, array( 'beta', 'rc', 'development' ), true ) ) { |
141 | 141 | $query['channel'] = WP_AUTO_UPDATE_CORE; |
142 | 142 | } |
143 | 143 | |