[wp-trac]
[WordPress Trac] #4918: Simpler resolution to ticket 3215,
wp_redirect status code on fastcgi
WordPress Trac
wp-trac at lists.automattic.com
Thu Sep 6 12:41:22 GMT 2007
#4918: Simpler resolution to ticket 3215, wp_redirect status code on fastcgi
-------------------------+--------------------------------------------------
Reporter: chmac | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 2.4 (next)
Component: General | Version:
Severity: normal | Keywords: wp_redirect
-------------------------+--------------------------------------------------
The resolution to ticket #3215 was at source:/trunk/wp-
includes/pluggable.php at latest#L420
The code is:
if ( php_sapi_name() != 'cgi-fcgi' )
status_header($status); // This causes problems on IIS and some
FastCGI setups
header("Location: $location");
This is simpler and works on both mod_php and fast cgi:
header("Location: $location",null,$status);
Any reason why not to use this approach? I've attached a patch.
--
Ticket URL: <http://trac.wordpress.org/ticket/4918>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list