Changeset 47808 for trunk/src/wp-includes/load.php
- Timestamp:
- 05/16/2020 06:40:52 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/load.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/load.php
r47623 r47808 41 41 42 42 // Fix for IIS when running with PHP ISAPI. 43 if ( empty( $_SERVER['REQUEST_URI'] ) || ( PHP_SAPI != 'cgi-fcgi'&& preg_match( '/^Microsoft-IIS\//', $_SERVER['SERVER_SOFTWARE'] ) ) ) {43 if ( empty( $_SERVER['REQUEST_URI'] ) || ( 'cgi-fcgi' !== PHP_SAPI && preg_match( '/^Microsoft-IIS\//', $_SERVER['SERVER_SOFTWARE'] ) ) ) { 44 44 45 45 if ( isset( $_SERVER['HTTP_X_ORIGINAL_URL'] ) ) { … … 138 138 */ 139 139 function wp_favicon_request() { 140 if ( '/favicon.ico' == $_SERVER['REQUEST_URI'] ) {140 if ( '/favicon.ico' === $_SERVER['REQUEST_URI'] ) { 141 141 header( 'Content-Type: image/vnd.microsoft.icon' ); 142 142 exit; … … 629 629 } 630 630 while ( ( $plugin = readdir( $dh ) ) !== false ) { 631 if ( substr( $plugin, -4 ) == '.php') {631 if ( '.php' === substr( $plugin, -4 ) ) { 632 632 $mu_plugins[] = WPMU_PLUGIN_DIR . '/' . $plugin; 633 633 } … … 671 671 foreach ( $active_plugins as $plugin ) { 672 672 if ( ! validate_file( $plugin ) // $plugin must validate as file. 673 && '.php' == substr( $plugin, -4 )// $plugin must end with '.php'.673 && '.php' === substr( $plugin, -4 ) // $plugin must end with '.php'. 674 674 && file_exists( WP_PLUGIN_DIR . '/' . $plugin ) // $plugin must exist. 675 675 // Not already included as a network plugin. … … 1169 1169 while ( true ) { 1170 1170 if ( defined( 'WPLANG' ) ) { 1171 if ( '' == WPLANG ) {1171 if ( '' === WPLANG ) { 1172 1172 break; 1173 1173 } … … 1264 1264 function is_ssl() { 1265 1265 if ( isset( $_SERVER['HTTPS'] ) ) { 1266 if ( 'on' == strtolower( $_SERVER['HTTPS'] ) ) {1266 if ( 'on' === strtolower( $_SERVER['HTTPS'] ) ) { 1267 1267 return true; 1268 1268 }
Note: See TracChangeset
for help on using the changeset viewer.