Make WordPress Core

Changeset 12358


Ignore:
Timestamp:
12/10/2009 08:33:17 AM (14 years ago)
Author:
markjaquith
Message:

Use http_response_code for wp_redirect(), so that fastcgi hosts always get 301 redirect love. props error. fixes #6779

File:
1 edited

Legend:

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

    r12021 r12358  
    866866        if ( php_sapi_name() != 'cgi-fcgi' )
    867867            status_header($status); // This causes problems on IIS and some FastCGI setups
    868         header("Location: $location");
     868        header("Location: $location", true, $status);
    869869    }
    870870}
Note: See TracChangeset for help on using the changeset viewer.