Skip to content

Commit

Permalink
Updates: Avoid stomping global $wp_version in wp_version_check()
Browse files Browse the repository at this point in the history
…and related.

fixes #34868.

Built from https://develop.svn.wordpress.org/trunk@35779


git-svn-id: http://core.svn.wordpress.org/trunk@35743 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
nacin committed Dec 6, 2015
1 parent 82ade1d commit 4503219
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions wp-includes/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function wp_version_check( $extra_stats = array(), $force_check = false ) {
return;
}

global $wp_version, $wpdb, $wp_local_package;
global $wpdb, $wp_local_package;
// include an unmodified $wp_version
include( ABSPATH . WPINC . '/version.php' );
$php_version = phpversion();
Expand Down Expand Up @@ -192,7 +192,6 @@ function wp_update_plugins( $extra_stats = array() ) {
return;
}

global $wp_version;
// include an unmodified $wp_version
include( ABSPATH . WPINC . '/version.php' );

Expand Down Expand Up @@ -348,7 +347,7 @@ function wp_update_themes( $extra_stats = array() ) {
if ( wp_installing() ) {
return;
}
global $wp_version;

// include an unmodified $wp_version
include( ABSPATH . WPINC . '/version.php' );

Expand Down Expand Up @@ -586,8 +585,8 @@ function wp_get_update_data() {
* @global string $wp_version
*/
function _maybe_update_core() {
global $wp_version;
include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version
// include an unmodified $wp_version
include( ABSPATH . WPINC . '/version.php' );

$current = get_site_transient( 'update_core' );

Expand Down
2 changes: 1 addition & 1 deletion wp-includes/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.5-alpha-35778';
$wp_version = '4.5-alpha-35779';

/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
Expand Down

0 comments on commit 4503219

Please sign in to comment.