mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-01 19:24:34 +00:00
Upgrade/Install: Allow WordPress sites to opt-in to development releases.
The `WP_AUTO_UPDATE_CORE` constant now supports `development` and `branch-development` values. This makes it possible for sites to opt-in to updating to nightly builds without having to install a plugin. Follow-up to [49245], [49292]. Props xkon, knutsp, afragen, audrasjb, dd32. Fixes #51978. git-svn-id: https://develop.svn.wordpress.org/trunk@50082 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -136,8 +136,10 @@ function wp_version_check( $extra_stats = array(), $force_check = false ) {
|
||||
$post_body = array_merge( $post_body, $extra_stats );
|
||||
}
|
||||
|
||||
// Allow for WP_AUTO_UPDATE_CORE to specify beta/RC releases.
|
||||
if ( defined( 'WP_AUTO_UPDATE_CORE' ) && in_array( WP_AUTO_UPDATE_CORE, array( 'beta', 'rc' ), true ) ) {
|
||||
// Allow for WP_AUTO_UPDATE_CORE to specify beta/RC/development releases.
|
||||
if ( defined( 'WP_AUTO_UPDATE_CORE' )
|
||||
&& in_array( WP_AUTO_UPDATE_CORE, array( 'beta', 'rc', 'development', 'branch-development' ), true )
|
||||
) {
|
||||
$query['channel'] = WP_AUTO_UPDATE_CORE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user