From d6f17ebfef690b0dd513fdf232e2fe8e27104a3d Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 29 Nov 2020 16:11:34 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@49708 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/update.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/wp-admin/includes/update.php b/src/wp-admin/includes/update.php index 14a0e70fe0..8c8d8a0747 100644 --- a/src/wp-admin/includes/update.php +++ b/src/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(