From bb46173adf79bb832fbd1b4035dd0868323f3823 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg 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: https://develop.svn.wordpress.org/trunk@2334 602fd350-edb4-49c9-b593-d223f7449a82 --- 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'] )