WordPress.org

Make WordPress Core

Ticket #2628: functions.php.diff

File functions.php.diff, 526 bytes (added by leftjustified, 16 years ago)
  • wp/wp-includes/functions.php

     
    726726        elseif ( 410 == $header )
    727727                $text = 'Gone';
    728728
    729         @header("HTTP/1.1 $header $text");
    730         @header("Status: $header $text");
     729        if (substr(php_sapi_name(), 0, 3) == 'cgi') {
     730                @header("Status: $header $text");
     731        } else {
     732                @header("HTTP/1.1 $header $text");
     733        }
    731734}
    732735
    733736function nocache_headers() {