diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-09-15 15:55:23 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-09-15 15:55:23 +0000 |
commit | 4c7700d4a6248aae408a5e69d0f732e2c05b991a (patch) | |
tree | 38c73b2d52a8e2ec6b54996337399058ed3d683f /wp-includes/update.php | |
parent | 421d4636136057d4dd1fdad2a91b371df164c522 (diff) | |
download | wordpress-mu-4c7700d4a6248aae408a5e69d0f732e2c05b991a.tar.gz wordpress-mu-4c7700d4a6248aae408a5e69d0f732e2c05b991a.tar.xz wordpress-mu-4c7700d4a6248aae408a5e69d0f732e2c05b991a.zip |
Revert the current_site change
git-svn-id: http://svn.automattic.com/wordpress-mu/branches/2.6@1473 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/update.php')
-rw-r--r-- | wp-includes/update.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wp-includes/update.php b/wp-includes/update.php index 0049b03..2b94455 100644 --- a/wp-includes/update.php +++ b/wp-includes/update.php @@ -22,7 +22,7 @@ function wp_version_check() { if ( !function_exists('fsockopen') || defined('WP_INSTALLING') ) return; - global $wp_version, $current_site; + global $wp_version; $php_version = phpversion(); $current = get_option( 'update_core' ); @@ -42,7 +42,7 @@ function wp_version_check() { $http_request = "GET /core/version-check/1.1/?version=$wp_version&php=$php_version&locale=$locale HTTP/1.0\r\n"; $http_request .= "Host: api.wordpress.org\r\n"; $http_request .= 'Content-Type: application/x-www-form-urlencoded; charset=' . get_option('blog_charset') . "\r\n"; - $http_request .= 'User-Agent: WordPress MU/' . $wp_version . '; ' . 'http://' . $current_site->domain . $current_site->path . "\r\n"; + $http_request .= 'User-Agent: WordPress MU/' . $wp_version . '; ' . get_bloginfo('url') . "\r\n"; $http_request .= "\r\n"; $response = ''; |