Ticket #1086: trackback-ua-version.diff
| File trackback-ua-version.diff, 953 bytes (added by , 22 years ago) |
|---|
-
wp-includes/functions.php
608 608 609 609 // Send a Trackback 610 610 function trackback($trackback_url, $title, $excerpt, $ID) { 611 global $wpdb ;611 global $wpdb, $wp_version; 612 612 $title = urlencode($title); 613 613 $excerpt = urlencode($excerpt); 614 614 $blog_name = urlencode(get_settings('blogname')); … … 620 620 $http_request .= 'Host: '.$trackback_url['host']."\r\n"; 621 621 $http_request .= 'Content-Type: application/x-www-form-urlencoded; charset='.get_settings('blog_charset')."\r\n"; 622 622 $http_request .= 'Content-Length: '.strlen($query_string)."\r\n"; 623 $http_request .= "User-Agent: WordPress/" . get_settings('version');623 $http_request .= "User-Agent: WordPress/" . $wp_version; 624 624 $http_request .= "\r\n\r\n"; 625 625 $http_request .= $query_string; 626 626 if ( '' == $trackback_url['port'] )