Send User-Agent when confirming pingbacks. Props error. fixes #1713

git-svn-id: https://develop.svn.wordpress.org/trunk@2933 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-10-05 23:29:56 +00:00
parent cb59a1db62
commit 14abc74d54
1 changed files with 1 additions and 1 deletions

View File

@ -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 )