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
This commit is contained in:
parent
f8efc5c837
commit
d973258889
|
@ -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'] )
|
||||
|
|
Loading…
Reference in New Issue