Changeset 55652 for trunk/src/wp-includes/load.php
- Timestamp:
- 04/15/2023 12:09:08 PM (3 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/load.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/load.php
r55537 r55652 41 41 42 42 // Fix for IIS when running with PHP ISAPI. 43 if ( empty( $_SERVER['REQUEST_URI'] ) || ( 'cgi-fcgi' !== PHP_SAPI && preg_match( '/^Microsoft-IIS\//', $_SERVER['SERVER_SOFTWARE'] ) ) ) { 43 if ( empty( $_SERVER['REQUEST_URI'] ) 44 || ( 'cgi-fcgi' !== PHP_SAPI && preg_match( '/^Microsoft-IIS\//', $_SERVER['SERVER_SOFTWARE'] ) ) 45 ) { 44 46 45 47 if ( isset( $_SERVER['HTTP_X_ORIGINAL_URL'] ) ) { … … 72 74 73 75 // Fix for PHP as CGI hosts that set SCRIPT_FILENAME to something ending in php.cgi for all requests. 74 if ( isset( $_SERVER['SCRIPT_FILENAME'] ) && ( strpos( $_SERVER['SCRIPT_FILENAME'], 'php.cgi' ) == strlen( $_SERVER['SCRIPT_FILENAME'] ) - 7 ) ) { 76 if ( isset( $_SERVER['SCRIPT_FILENAME'] ) 77 && ( strpos( $_SERVER['SCRIPT_FILENAME'], 'php.cgi' ) === strlen( $_SERVER['SCRIPT_FILENAME'] ) - 7 ) 78 ) { 75 79 $_SERVER['SCRIPT_FILENAME'] = $_SERVER['PATH_TRANSLATED']; 76 80 }
Note: See TracChangeset
for help on using the changeset viewer.