From bbd6eee6f75020ef6070acb36fe8d384744cc1f4 Mon Sep 17 00:00:00 2001 From: donncha Date: Tue, 11 Oct 2005 09:06:45 +0000 Subject: Fixed pings! git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@395 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-inst/wp-includes/functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'wp-inst/wp-includes/functions.php') 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 ) -- cgit