Changeset 47550 for trunk/src/wp-includes/load.php
- Timestamp:
- 04/05/2020 03:00:44 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/load.php
r47370 r47550 15 15 function wp_get_server_protocol() { 16 16 $protocol = isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : ''; 17 if ( ! in_array( $protocol, array( 'HTTP/1.1', 'HTTP/2', 'HTTP/2.0' ) ) ) {17 if ( ! in_array( $protocol, array( 'HTTP/1.1', 'HTTP/2', 'HTTP/2.0' ), true ) ) { 18 18 $protocol = 'HTTP/1.0'; 19 19 } … … 41 41 $input = array_merge( $_GET, $_POST, $_COOKIE, $_SERVER, $_ENV, $_FILES, isset( $_SESSION ) && is_array( $_SESSION ) ? $_SESSION : array() ); 42 42 foreach ( $input as $k => $v ) { 43 if ( ! in_array( $k, $no_unset ) && isset( $GLOBALS[ $k ] ) ) {43 if ( ! in_array( $k, $no_unset, true ) && isset( $GLOBALS[ $k ] ) ) { 44 44 unset( $GLOBALS[ $k ] ); 45 45 } … … 684 684 && file_exists( WP_PLUGIN_DIR . '/' . $plugin ) // $plugin must exist. 685 685 // Not already included as a network plugin. 686 && ( ! $network_plugins || ! in_array( WP_PLUGIN_DIR . '/' . $plugin, $network_plugins ) )686 && ( ! $network_plugins || ! in_array( WP_PLUGIN_DIR . '/' . $plugin, $network_plugins, true ) ) 687 687 ) { 688 688 $plugins[] = WP_PLUGIN_DIR . '/' . $plugin;
Note: See TracChangeset
for help on using the changeset viewer.