From 4ffa89daa7fa063066d650940d0a260a088cfd54 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 5 Oct 2005 23:29:56 +0000 Subject: [PATCH] Send User-Agent when confirming pingbacks. Props error. fixes #1713 git-svn-id: http://svn.automattic.com/wordpress/trunk@2933 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index a38c25311..3d4ad013e 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -933,7 +933,7 @@ function wp_get_http_headers( $url ) { if ( !isset( $parts['port'] ) ) $parts['port'] = 80; - $head = "HEAD $file HTTP/1.1\r\nHOST: $host\r\n\r\n"; + $head = "HEAD $file HTTP/1.1\r\nHOST: $host\r\nUser-Agent: WordPress/" . $wp_version . " PHP/" . phpversion() . "\r\n"; $fp = @fsockopen($host, $parts['port'], $err_num, $err_msg, 3); if ( !$fp )