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/functions.php

    r31090 r31120  
    36203620         * via ISAPI then pretty permalinks will not work.
    36213621         */
    3622         $supports_permalinks = class_exists('DOMDocument') && isset($_SERVER['IIS_UrlRewriteModule']) && ( php_sapi_name() == 'cgi-fcgi' );
     3622        $supports_permalinks = class_exists('DOMDocument') && isset($_SERVER['IIS_UrlRewriteModule']) && ( PHP_SAPI == 'cgi-fcgi' );
    36233623    }
    36243624
Note: See TracChangeset for help on using the changeset viewer.