Changeset 16907
- Timestamp:
- 12/14/2010 10:15:31 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/pluggable.php
r16760 r16907 877 877 */ 878 878 function wp_redirect($location, $status = 302) { 879 global $is_IIS; 880 879 881 $location = apply_filters('wp_redirect', $location, $status); 880 882 $status = apply_filters('wp_redirect_status', $status, $location); … … 885 887 $location = wp_sanitize_redirect($location); 886 888 887 if ( php_sapi_name() != 'cgi-fcgi' )889 if ( !$is_IIS && php_sapi_name() != 'cgi-fcgi' ) 888 890 status_header($status); // This causes problems on IIS and some FastCGI setups 891 889 892 header("Location: $location", true, $status); 890 893 }
Note: See TracChangeset
for help on using the changeset viewer.