From d973258889dca6f8442c460d9d6054cae7e6c5bc Mon Sep 17 00:00:00 2001 From: saxmatt Date: Mon, 14 Feb 2005 09:48:48 +0000 Subject: [PATCH] User agent in trackbacks, good idea - http://mosquito.wordpress.org/view.php?id=873 git-svn-id: http://svn.automattic.com/wordpress/trunk@2334 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index b4c2c53a34..c37beeeec3 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -631,6 +631,7 @@ function trackback($trackback_url, $title, $excerpt, $ID) { $http_request .= 'Host: '.$trackback_url['host']."\r\n"; $http_request .= 'Content-Type: application/x-www-form-urlencoded; charset='.get_settings('blog_charset')."\r\n"; $http_request .= 'Content-Length: '.strlen($query_string)."\r\n"; + $http_request .= "User-Agent: WordPress/" . get_settings('version'); $http_request .= "\r\n"; $http_request .= $query_string; if ( '' == $trackback_url['port'] )