From 95f28a3fd2f70cfdd6c4d8018e09efea963052ad Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 29 Nov 2020 16:13:06 +0000 Subject: [PATCH] Upgrade/Install: Display "You are using a development version" message in the admin footer for Beta or RC versions. This ensures that the message is displayed when the `WP_AUTO_UPDATE_CORE` constant is set to `beta` or `rc` and the user is on a development version. Props afragen. Fixes #51892. Built from https://develop.svn.wordpress.org/trunk@49708 git-svn-id: http://core.svn.wordpress.org/trunk@49431 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/update.php | 6 ++++++ wp-includes/version.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/update.php b/wp-admin/includes/update.php index 14a0e70fe0..8c8d8a0747 100644 --- a/wp-admin/includes/update.php +++ b/wp-admin/includes/update.php @@ -248,6 +248,12 @@ function core_update_footer( $msg = '' ) { $cur->response = ''; } + $is_development_version = preg_match( '/alpha|beta|RC/', $cur->version ); + + if ( $is_development_version && 'latest' === $cur->response ) { + $cur->response = 'development'; + } + switch ( $cur->response ) { case 'development': return sprintf( diff --git a/wp-includes/version.php b/wp-includes/version.php index 312510e339..f4e93627bb 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.7-alpha-49705'; +$wp_version = '5.7-alpha-49708'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.