Changeset 45400
- Timestamp:
- 05/24/2019 01:46:16 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/load.php
r45350 r45400 14 14 */ 15 15 function wp_get_server_protocol() { 16 $protocol = $_SERVER['SERVER_PROTOCOL'];16 $protocol = isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : ''; 17 17 if ( ! in_array( $protocol, array( 'HTTP/1.1', 'HTTP/2', 'HTTP/2.0' ) ) ) { 18 18 $protocol = 'HTTP/1.0';
Note: See TracChangeset
for help on using the changeset viewer.