summaryrefslogtreecommitdiffstats
path: root/wp-includes
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-09-16 16:44:55 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-09-16 16:44:55 +0000
commit1c47e3df85a1caa1d99c897a444e540395746d34 (patch)
tree186e3c22a45643de6adb61c9056f910d2a1b4486 /wp-includes
parent034fec85fcdde81c5614eb65fde6c614ba385068 (diff)
downloadwordpress-mu-1c47e3df85a1caa1d99c897a444e540395746d34.tar.gz
wordpress-mu-1c47e3df85a1caa1d99c897a444e540395746d34.tar.xz
wordpress-mu-1c47e3df85a1caa1d99c897a444e540395746d34.zip
Check against $wpmu_version, use $current_site.
git-svn-id: http://svn.automattic.com/wordpress-mu/branches/2.6@1476 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes')
-rw-r--r--wp-includes/update.php4
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 = '';