Changeset 15682
- Timestamp:
- 10/02/2010 04:02:24 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/pluggable.php
r15553 r15682 862 862 if ( !function_exists('wp_redirect') ) : 863 863 /** 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 * 867 866 * @since 1.5.1 868 867 * @uses apply_filters() Calls 'wp_redirect' hook on $location and $status. … … 873 872 */ 874 873 function wp_redirect($location, $status = 302) { 875 global $is_IIS;876 877 874 $location = apply_filters('wp_redirect', $location, $status); 878 875 $status = apply_filters('wp_redirect_status', $status, $location); … … 883 880 $location = wp_sanitize_redirect($location); 884 881 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); 892 885 } 893 886 endif;
Note: See TracChangeset
for help on using the changeset viewer.