Make WordPress Core


Ignore:
Timestamp:
01/10/2015 04:58:49 AM (10 years ago)
Author:
wonderboymusic
Message:

Use PHP_SAPI constant instead of php_sapi_name() in iis7_supports_permalinks(), wp_fix_server_vars(), and wp_redirect().

See #30799.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/load.php

    r31090 r31120  
    5353
    5454    // Fix for IIS when running with PHP ISAPI
    55     if ( empty( $_SERVER['REQUEST_URI'] ) || ( php_sapi_name() != 'cgi-fcgi' && preg_match( '/^Microsoft-IIS\//', $_SERVER['SERVER_SOFTWARE'] ) ) ) {
     55    if ( empty( $_SERVER['REQUEST_URI'] ) || ( PHP_SAPI != 'cgi-fcgi' && preg_match( '/^Microsoft-IIS\//', $_SERVER['SERVER_SOFTWARE'] ) ) ) {
    5656
    5757        // IIS Mod-Rewrite
Note: See TracChangeset for help on using the changeset viewer.