WordPress.org

Make WordPress Core

Changeset 2933


Ignore:
Timestamp:
10/05/2005 11:29:56 PM (13 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.