summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-includes/functions.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-10-11 09:06:45 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-10-11 09:06:45 +0000
commitbbd6eee6f75020ef6070acb36fe8d384744cc1f4 (patch)
tree9894816d11fd894d0bc93be693e45975c5b3b89b /wp-inst/wp-includes/functions.php
parent6cabcf704c8015066f9126117583c81eca68bd0d (diff)
downloadwordpress-mu-bbd6eee6f75020ef6070acb36fe8d384744cc1f4.tar.gz
wordpress-mu-bbd6eee6f75020ef6070acb36fe8d384744cc1f4.tar.xz
wordpress-mu-bbd6eee6f75020ef6070acb36fe8d384744cc1f4.zip
Fixed pings!
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@395 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-includes/functions.php')
-rw-r--r--wp-inst/wp-includes/functions.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/wp-inst/wp-includes/functions.php b/wp-inst/wp-includes/functions.php
index da63c4a..c30f38a 100644
--- a/wp-inst/wp-includes/functions.php
+++ b/wp-inst/wp-includes/functions.php
@@ -926,6 +926,7 @@ function do_enclose( $content, $post_ID ) {
}
function wp_get_http_headers( $url ) {
+ global $wp_version;
@set_time_limit( 60 );
$parts = parse_url( $url );
$file = $parts['path'] . ($parts['query'] ? '?'.$parts['query'] : '');
@@ -933,7 +934,7 @@ function wp_get_http_headers( $url ) {
if ( !isset( $parts['port'] ) )
$parts['port'] = 80;
- $head = "HEAD $file HTTP/1.1\r\nHOST: $host\r\nUser-Agent: WordPress/" . $wp_version . " PHP/" . phpversion() . "\r\n";
+ $head = "HEAD $file HTTP/1.1\r\nHOST: $host\r\nUser-Agent: WordPress/" . $wp_version . "\r\n\r\n";
$fp = @fsockopen($host, $parts['port'], $err_num, $err_msg, 3);
if ( !$fp )