Ticket #10187: 10187_ruslany.patch
File 10187_ruslany.patch, 1.3 KB (added by , 15 years ago) |
---|
-
wp-includes/pluggable.php
839 839 840 840 if ( !function_exists('wp_redirect') ) : 841 841 /** 842 * Redirects to another page , with a workaround for the IIS Set-Cookie bug.842 * Redirects to another page. 843 843 * 844 * @link http://support.microsoft.com/kb/q176113/845 844 * @since 1.5.1 846 845 * @uses apply_filters() Calls 'wp_redirect' hook on $location and $status. 847 846 * … … 850 849 * @return bool False if $location is not set 851 850 */ 852 851 function wp_redirect($location, $status = 302) { 853 global $is_IIS;854 852 855 853 $location = apply_filters('wp_redirect', $location, $status); 856 854 $status = apply_filters('wp_redirect_status', $status, $location); … … 860 858 861 859 $location = wp_sanitize_redirect($location); 862 860 863 if ( $is_IIS ) { 864 header("Refresh: 0;url=$location"); 865 } else { 866 if ( php_sapi_name() != 'cgi-fcgi' ) 867 status_header($status); // This causes problems on IIS and some FastCGI setups 868 header("Location: $location", true, $status); 869 } 861 if ( php_sapi_name() != 'cgi-fcgi' ) 862 status_header($status); // This causes problems on some FastCGI setups 863 header("Location: $location", true, $status); 870 864 } 871 865 endif; 872 866