Make WordPress Core

Changeset 4514


Ignore:
Timestamp:
11/22/2006 04:59:31 AM (20 years ago)
Author:
markjaquith
Message:

trying Ryan's suggestion for #3215

Location:
branches/2.0/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-includes/functions.php

    r4473 r4514  
    22292229                $text = 'Gone';
    22302230
    2231         @header("HTTP/1.1 $header $text");
    2232         @header("Status: $header $text");
     2231                if ( substr(php_sapi_name(), 0, 3) == 'cgi' )
     2232                        @header("HTTP/1.1 $header $text");
     2233                else
     2234                        @header("Status: $header $text");
    22332235}
    22342236
  • branches/2.0/wp-includes/pluggable-functions.php

    r4384 r4514  
    266266                header("Refresh: 0;url=$location");
    267267        } else {
    268                 status_header($status); // This causes problems on IIS
     268                if ( php_sapi_name() != 'cgi-fcgi' )
     269                        status_header($status); // This causes problems on IIS and some FastCGI setups
    269270                header("Location: $location");
    270271        }
Note: See TracChangeset for help on using the changeset viewer.