Upgrade/Install: Check `$wp_version` global for displaying "You are using a development version" message in the admin footer.
This brings some consistency with the same check in `core_upgrade_preamble()` and avoids a PHP warning if `$cur->version` is not set. Additionally, remove the check for `$cur->url` property, unused since [8595]. Follow-up to [49708], [49709]. Props pbiron, afragen, audrasjb. Fixes #51892. Built from https://develop.svn.wordpress.org/trunk@49736 git-svn-id: http://core.svn.wordpress.org/trunk@49459 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0a20850f57
commit
be2891ef1a
|
@ -240,15 +240,14 @@ function core_update_footer( $msg = '' ) {
|
||||||
$cur->current = '';
|
$cur->current = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ! isset( $cur->url ) ) {
|
|
||||||
$cur->url = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( ! isset( $cur->response ) ) {
|
if ( ! isset( $cur->response ) ) {
|
||||||
$cur->response = '';
|
$cur->response = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
$is_development_version = preg_match( '/alpha|beta|RC/', $cur->version );
|
// Include an unmodified $wp_version.
|
||||||
|
require ABSPATH . WPINC . '/version.php';
|
||||||
|
|
||||||
|
$is_development_version = preg_match( '/alpha|beta|RC/', $wp_version );
|
||||||
|
|
||||||
if ( $is_development_version && 'latest' === $cur->response ) {
|
if ( $is_development_version && 'latest' === $cur->response ) {
|
||||||
$cur->response = 'development';
|
$cur->response = 'development';
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.7-alpha-49735';
|
$wp_version = '5.7-alpha-49736';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue