mirror of
git://develop.git.wordpress.org/
synced 2025-04-16 18:11:59 +02:00
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. Reviewed by azaozz, SergeyBiryukov. Merges [49708] to the 5.6 branch. Fixes #51892. git-svn-id: https://develop.svn.wordpress.org/branches/5.6@49711 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
87d43c355e
commit
85e53c45a6
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user