Changeset 31120
- Timestamp:
- 01/10/2015 04:58:49 AM (10 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r31090 r31120 3620 3620 * via ISAPI then pretty permalinks will not work. 3621 3621 */ 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' ); 3623 3623 } 3624 3624 -
trunk/src/wp-includes/load.php
r31090 r31120 53 53 54 54 // 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'] ) ) ) { 56 56 57 57 // IIS Mod-Rewrite -
trunk/src/wp-includes/pluggable.php
r31107 r31120 1173 1173 $location = wp_sanitize_redirect($location); 1174 1174 1175 if ( !$is_IIS && php_sapi_name()!= 'cgi-fcgi' )1175 if ( !$is_IIS && PHP_SAPI != 'cgi-fcgi' ) 1176 1176 status_header($status); // This causes problems on IIS and some FastCGI setups 1177 1177
Note: See TracChangeset
for help on using the changeset viewer.