From 421d4636136057d4dd1fdad2a91b371df164c522 Mon Sep 17 00:00:00 2001 From: donncha Date: Mon, 15 Sep 2008 15:51:39 +0000 Subject: 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 --- wp-includes/update.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wp-includes') 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 = ''; -- cgit