Changeset 36312 for trunk/src/wp-admin/load-styles.php
- Timestamp:
- 01/15/2016 10:22:24 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/load-styles.php
r34037 r36312 31 31 wp_default_styles($wp_styles); 32 32 33 if ( isset( $_SERVER['HTTP_IF_NONE_MATCH'] ) && stripslashes( $_SERVER['HTTP_IF_NONE_MATCH'] ) === $wp_version ) { 34 $protocol = $_SERVER['SERVER_PROTOCOL']; 35 if ( ! in_array( $protocol, array( 'HTTP/1.1', 'HTTP/2', 'HTTP/2.0' ) ) ) { 36 $protocol = 'HTTP/1.0'; 37 } 38 header( "$protocol 304 Not Modified" ); 39 exit(); 40 } 41 33 42 foreach ( $load as $handle ) { 34 43 if ( !array_key_exists($handle, $wp_styles->registered) ) … … 55 64 } 56 65 66 header("Etag: $wp_version"); 57 67 header('Content-Type: text/css; charset=UTF-8'); 58 68 header('Expires: ' . gmdate( "D, d M Y H:i:s", time() + $expires_offset ) . ' GMT');
Note: See TracChangeset
for help on using the changeset viewer.