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:
saxmatt 2004-09-07 03:15:48 +00:00
parent b650b0736a
commit 5c53295551
1 changed files with 3 additions and 1 deletions

View File

@ -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';