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:
parent
557d9313a7
commit
70ae01e133
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue