From c9683257db350075a5bee89dc6f4d2bbe60c5e37 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Tue, 5 Nov 2013 06:23:10 +0000 Subject: [PATCH] Core Upgrader: Include an unmodified $wp_version in Core_Upgrader::upgrade(). This protects against cases where the global $wp_version has been modified. See #25772 Built from https://develop.svn.wordpress.org/trunk@26017 git-svn-id: http://core.svn.wordpress.org/trunk@25948 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-upgrader.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/class-wp-upgrader.php b/wp-admin/includes/class-wp-upgrader.php index ac75a7108a..c2ec01f51e 100644 --- a/wp-admin/includes/class-wp-upgrader.php +++ b/wp-admin/includes/class-wp-upgrader.php @@ -1313,7 +1313,9 @@ class Core_Upgrader extends WP_Upgrader { } function upgrade( $current, $args = array() ) { - global $wp_filesystem, $wp_version; + global $wp_filesystem; + + include ABSPATH . WPINC . '/version.php'; // $wp_version; $start_time = time();