Ticket #28722: wp-admin.patch
File wp-admin.patch, 1.4 KB (added by , 10 years ago) |
---|
-
wp-admin/load-styles.php
134 134 } 135 135 } 136 136 137 $md5_file = md5($out); 138 139 // Use stripslashes to avoid formatting.php (wp_unslash) dependency 140 if ( isset( $_SERVER['HTTP_IF_NONE_MATCH'] ) && stripslashes( $_SERVER['HTTP_IF_NONE_MATCH'] ) === $md5_file ) { 141 header('HTTP/1.1 304 Not Modified'); 142 exit(); 143 } 144 145 header('Etag: ' .$md5_file); 137 146 header('Content-Type: text/css; charset=UTF-8'); 138 147 header('Expires: ' . gmdate( "D, d M Y H:i:s", time() + $expires_offset ) . ' GMT'); 139 148 header("Cache-Control: public, max-age=$expires_offset"); -
wp-admin/load-scripts.php
143 143 $out .= get_file($path) . "\n"; 144 144 } 145 145 146 $md5_file = md5($out); 147 148 // Use stripslashes to avoid formatting.php (wp_unslash) dependency 149 if ( isset( $_SERVER['HTTP_IF_NONE_MATCH'] ) && stripslashes( $_SERVER['HTTP_IF_NONE_MATCH'] ) === $md5_file ) { 150 header('HTTP/1.1 304 Not Modified'); 151 exit(); 152 } 153 154 header('Etag: ' .$md5_file); 146 155 header('Content-Type: application/x-javascript; charset=UTF-8'); 147 156 header('Expires: ' . gmdate( "D, d M Y H:i:s", time() + $expires_offset ) . ' GMT'); 148 157 header("Cache-Control: public, max-age=$expires_offset");