mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-29 15:44:27 +00:00
Use PHP_SAPI constant instead of php_sapi_name() in iis7_supports_permalinks(), wp_fix_server_vars(), and wp_redirect().
See #30799. git-svn-id: https://develop.svn.wordpress.org/trunk@31120 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1172,7 +1172,7 @@ function wp_redirect($location, $status = 302) {
|
||||
|
||||
$location = wp_sanitize_redirect($location);
|
||||
|
||||
if ( !$is_IIS && php_sapi_name() != 'cgi-fcgi' )
|
||||
if ( !$is_IIS && PHP_SAPI != 'cgi-fcgi' )
|
||||
status_header($status); // This causes problems on IIS and some FastCGI setups
|
||||
|
||||
header("Location: $location", true, $status);
|
||||
|
||||
Reference in New Issue
Block a user