Make WordPress Core

Changeset 15682


Ignore:
Timestamp:
10/02/2010 04:02:24 AM (14 years ago)
Author:
dd32
Message:

Retire IIS 3,4,5 Set-Cookie redirection workaround. See [2436] for original implementation. See #10187

File:
1 edited

Legend:

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

    r15553 r15682  
    862862if ( !function_exists('wp_redirect') ) :
    863863/**
    864  * Redirects to another page, with a workaround for the IIS Set-Cookie bug.
    865  *
    866  * @link http://support.microsoft.com/kb/q176113/
     864 * Redirects to another page.
     865 *
    867866 * @since 1.5.1
    868867 * @uses apply_filters() Calls 'wp_redirect' hook on $location and $status.
     
    873872 */
    874873function wp_redirect($location, $status = 302) {
    875     global $is_IIS;
    876 
    877874    $location = apply_filters('wp_redirect', $location, $status);
    878875    $status = apply_filters('wp_redirect_status', $status, $location);
     
    883880    $location = wp_sanitize_redirect($location);
    884881
    885     if ( $is_IIS ) {
    886         header("Refresh: 0;url=$location");
    887     } else {
    888         if ( php_sapi_name() != 'cgi-fcgi' )
    889             status_header($status); // This causes problems on IIS and some FastCGI setups
    890         header("Location: $location", true, $status);
    891     }
     882    if ( php_sapi_name() != 'cgi-fcgi' )
     883        status_header($status); // This causes problems on IIS and some FastCGI setups
     884    header("Location: $location", true, $status);
    892885}
    893886endif;
Note: See TracChangeset for help on using the changeset viewer.