WordPress.org

Make WordPress Core

Changeset 2933


Ignore:
Timestamp:
10/05/05 23:29:56 (9 years ago)
Author:
ryan
Message:

Send User-Agent when confirming pingbacks. Props error. fixes #1713

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r2922 r2933  
    934934        $parts['port'] = 80; 
    935935 
    936     $head = "HEAD $file HTTP/1.1\r\nHOST: $host\r\n\r\n"; 
     936    $head = "HEAD $file HTTP/1.1\r\nHOST: $host\r\nUser-Agent: WordPress/" . $wp_version . " PHP/" . phpversion() . "\r\n"; 
    937937 
    938938    $fp = @fsockopen($host, $parts['port'], $err_num, $err_msg, 3); 
Note: See TracChangeset for help on using the changeset viewer.