Trackback fix from Michael Dale.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1617 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b650b0736a
commit
5c53295551
|
@ -559,7 +559,9 @@ function trackback($trackback_url, $title, $excerpt, $ID) {
|
|||
$http_request .= 'Content-Length: '.strlen($query_string)."\r\n";
|
||||
$http_request .= "\r\n";
|
||||
$http_request .= $query_string;
|
||||
$fs = @fsockopen($trackback_url['host'], 80);
|
||||
if ( '' == $trackback_url['port'] )
|
||||
$trackback_url['port'] = 80;
|
||||
$fs = @fsockopen($trackback_url['host'], $trackback_url['port']);
|
||||
@fputs($fs, $http_request);
|
||||
/*
|
||||
$debug_file = 'trackback.log';
|
||||
|
|
Loading…
Reference in New Issue