WordPress.org

Make WordPress Core

Ticket #8226: 8226.diff

File 8226.diff, 699 bytes (added by tenpura, 10 years ago)
  • wp-includes/functions.php

     
    13711371        $protocol = $_SERVER["SERVER_PROTOCOL"];
    13721372        if ( 'HTTP/1.1' != $protocol && 'HTTP/1.0' != $protocol )
    13731373                $protocol = 'HTTP/1.0';
    1374         $status_header = "$protocol $header $text";
     1374
     1375        if('cgi' == substr(strtolower(php_sapi_name()), 0, 3))
     1376                $status_header = "Status: $header $text";
     1377        else
     1378                $status_header = "$protocol $header $text";
     1379
    13751380        if ( function_exists( 'apply_filters' ) )
    13761381                $status_header = apply_filters( 'status_header', $status_header, $header, $text, $protocol );
    13771382