WordPress.org

Make WordPress Core

Changeset 4513


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

trying Ryan's suggestion for #3215

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r4495 r4513  
    777777
    778778    if ( substr(php_sapi_name(), 0, 3) == 'cgi' )
     779        @header("HTTP/1.1 $header $text");
     780    else
    779781        @header("Status: $header $text");
    780     else
    781         @header("HTTP/1.1 $header $text");
    782782}
    783783
  • trunk/wp-includes/pluggable.php

    r4495 r4513  
    271271        header("Refresh: 0;url=$location");
    272272    } else {
    273         status_header($status); // This causes problems on IIS
     273        if ( php_sapi_name() != 'cgi-fcgi' )
     274            status_header($status); // This causes problems on IIS and some FastCGI setups
    274275        header("Location: $location");
    275276    }
Note: See TracChangeset for help on using the changeset viewer.