WordPress.org

Make WordPress Core

Ticket #1713: functions.diff

File functions.diff, 477 bytes (added by error, 13 years ago)

patch wp-includes/functions.php fixes this issue

  • wp-includes/functions.php

    old new  
    802802        if ( !isset( $parts['port'] ) )
    803803                $parts['port'] = 80;
    804804
    805         $head = "HEAD $file HTTP/1.1\r\nHOST: $host\r\n\r\n";
     805        $head = "HEAD $file HTTP/1.1\r\nHOST: $host\r\nUser-Agent: WordPress/" . $wp_version . " PHP/" . phpversion() . "\r\n";
    806806
    807807        $fp = @fsockopen($host, $parts['port'], $err_num, $err_msg, 3);
    808808        if ( !$fp )