diff options
-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 2b94455..2aa3a6c 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 MU/' . $wp_version . '; ' . get_bloginfo('url') . "\r\n"; + $http_request .= 'User-Agent: WordPress MU/' . $wpmu_version . '; ' . get_bloginfo('url') . '; http://' . $current_site->domain . $current_site->path . "\r\n"; $http_request .= "\r\n"; $response = ''; |