mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@49736 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
78f451030b
commit
96b67833fe
@ -240,15 +240,14 @@ function core_update_footer( $msg = '' ) {
|
||||
$cur->current = '';
|
||||
}
|
||||
|
||||
if ( ! isset( $cur->url ) ) {
|
||||
$cur->url = '';
|
||||
}
|
||||
|
||||
if ( ! isset( $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 ) {
|
||||
$cur->response = 'development';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user