diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-09-15 15:51:39 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-09-15 15:51:39 +0000 |
commit | 421d4636136057d4dd1fdad2a91b371df164c522 (patch) | |
tree | 4c477a730346e4eec4e0e600afc56d85db4458e8 /wp-includes | |
parent | 0bea7c7ad2ee8e82a86919b1cd2fea517cc67ec8 (diff) | |
download | wordpress-mu-421d4636136057d4dd1fdad2a91b371df164c522.tar.gz wordpress-mu-421d4636136057d4dd1fdad2a91b371df164c522.tar.xz wordpress-mu-421d4636136057d4dd1fdad2a91b371df164c522.zip |
Use WordPress MU UA and current site details when updating.
git-svn-id: http://svn.automattic.com/wordpress-mu/branches/2.6@1472 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes')
-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 beeee9f..0049b03 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; + global $wp_version, $current_site; $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/' . $wp_version . '; ' . get_bloginfo('url') . "\r\n"; + $http_request .= 'User-Agent: WordPress MU/' . $wp_version . '; ' . 'http://' . $current_site->domain . $current_site->path . "\r\n"; $http_request .= "\r\n"; $response = ''; |