Do not use time constants in files the WP bootstrap is not or may not be loaded. see #20987.

git-svn-id: http://core.svn.wordpress.org/trunk@21997 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2012-09-25 07:05:48 +00:00
parent 557d9313a7
commit 70ae01e133
3 changed files with 3 additions and 3 deletions

View File

@ -125,7 +125,7 @@ require(ABSPATH . WPINC . '/version.php');
$compress = ( isset($_GET['c']) && $_GET['c'] );
$force_gzip = ( $compress && 'gzip' == $_GET['c'] );
$expires_offset = YEAR_IN_SECONDS;
$expires_offset = 31536000;
$out = '';
$wp_scripts = new WP_Scripts();

View File

@ -104,7 +104,7 @@ if ( empty($load) )
$compress = ( isset($_GET['c']) && $_GET['c'] );
$force_gzip = ( $compress && 'gzip' == $_GET['c'] );
$rtl = ( isset($_GET['dir']) && 'rtl' == $_GET['dir'] );
$expires_offset = YEAR_IN_SECONDS;
$expires_offset = 31536000;
$out = '';
$wp_styles = new WP_Styles();

View File

@ -19,7 +19,7 @@ function get_file($path) {
return @file_get_contents($path);
}
$expires_offset = YEAR_IN_SECONDS;
$expires_offset = 31536000;
header('Content-Type: application/x-javascript; charset=UTF-8');
header('Vary: Accept-Encoding'); // Handle proxies