diff --git a/wp-admin/includes/update.php b/wp-admin/includes/update.php index 8c8d8a0747..e01fd28eb3 100644 --- a/wp-admin/includes/update.php +++ b/wp-admin/includes/update.php @@ -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'; diff --git a/wp-includes/version.php b/wp-includes/version.php index 87baa89e5b..a5d362afd8 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @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.