mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
trying Ryan's suggestion for #3215
git-svn-id: http://svn.automattic.com/wordpress/trunk@4513 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
49281a1caf
commit
16998c6bb3
@ -776,9 +776,9 @@ function status_header( $header ) {
|
||||
$text = 'Gone';
|
||||
|
||||
if ( substr(php_sapi_name(), 0, 3) == 'cgi' )
|
||||
@header("Status: $header $text");
|
||||
else
|
||||
@header("HTTP/1.1 $header $text");
|
||||
else
|
||||
@header("Status: $header $text");
|
||||
}
|
||||
|
||||
function nocache_headers() {
|
||||
|
@ -270,7 +270,8 @@ function wp_redirect($location, $status = 302) {
|
||||
if ( $is_IIS ) {
|
||||
header("Refresh: 0;url=$location");
|
||||
} else {
|
||||
status_header($status); // This causes problems on IIS
|
||||
if ( php_sapi_name() != 'cgi-fcgi' )
|
||||
status_header($status); // This causes problems on IIS and some FastCGI setups
|
||||
header("Location: $location");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user