Changeset 45731 for trunk/src/wp-admin/load-styles.php
- Timestamp:
- 08/03/2019 10:16:23 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/load-styles.php
r45456 r45731 19 19 require( ABSPATH . WPINC . '/version.php' ); 20 20 21 $protocol = $_SERVER['SERVER_PROTOCOL']; 22 if ( ! in_array( $protocol, array( 'HTTP/1.1', 'HTTP/2', 'HTTP/2.0' ) ) ) { 23 $protocol = 'HTTP/1.0'; 24 } 25 21 26 $load = $_GET['load']; 22 27 if ( is_array( $load ) ) { … … 29 34 30 35 if ( empty( $load ) ) { 36 header( "$protocol 400 Bad Request" ); 31 37 exit; 32 38 } … … 40 46 41 47 if ( isset( $_SERVER['HTTP_IF_NONE_MATCH'] ) && stripslashes( $_SERVER['HTTP_IF_NONE_MATCH'] ) === $wp_version ) { 42 $protocol = $_SERVER['SERVER_PROTOCOL'];43 if ( ! in_array( $protocol, array( 'HTTP/1.1', 'HTTP/2', 'HTTP/2.0' ) ) ) {44 $protocol = 'HTTP/1.0';45 }46 48 header( "$protocol 304 Not Modified" ); 47 49 exit();
Note: See TracChangeset
for help on using the changeset viewer.