Retire IIS 3,4,5 Set-Cookie redirection workaround. See [2436] for original implementation. See #10187
git-svn-id: http://svn.automattic.com/wordpress/trunk@15682 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ce479b392f
commit
9ce6d04ffb
|
@ -861,9 +861,8 @@ endif;
|
|||
|
||||
if ( !function_exists('wp_redirect') ) :
|
||||
/**
|
||||
* Redirects to another page, with a workaround for the IIS Set-Cookie bug.
|
||||
* Redirects to another page.
|
||||
*
|
||||
* @link http://support.microsoft.com/kb/q176113/
|
||||
* @since 1.5.1
|
||||
* @uses apply_filters() Calls 'wp_redirect' hook on $location and $status.
|
||||
*
|
||||
|
@ -872,8 +871,6 @@ if ( !function_exists('wp_redirect') ) :
|
|||
* @return bool False if $location is not set
|
||||
*/
|
||||
function wp_redirect($location, $status = 302) {
|
||||
global $is_IIS;
|
||||
|
||||
$location = apply_filters('wp_redirect', $location, $status);
|
||||
$status = apply_filters('wp_redirect_status', $status, $location);
|
||||
|
||||
|
@ -882,13 +879,9 @@ function wp_redirect($location, $status = 302) {
|
|||
|
||||
$location = wp_sanitize_redirect($location);
|
||||
|
||||
if ( $is_IIS ) {
|
||||
header("Refresh: 0;url=$location");
|
||||
} else {
|
||||
if ( php_sapi_name() != 'cgi-fcgi' )
|
||||
status_header($status); // This causes problems on IIS and some FastCGI setups
|
||||
header("Location: $location", true, $status);
|
||||
}
|
||||
}
|
||||
endif;
|
||||
|
||||
|
|
Loading…
Reference in New Issue