Add comments to time intervals we cannot express with the constants. Fix a comment. props SergeyBiryukov. fixes #20987.
git-svn-id: http://core.svn.wordpress.org/trunk@22531 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
944066ef83
commit
e7767b1eba
|
@ -125,7 +125,7 @@ require(ABSPATH . WPINC . '/version.php');
|
|||
|
||||
$compress = ( isset($_GET['c']) && $_GET['c'] );
|
||||
$force_gzip = ( $compress && 'gzip' == $_GET['c'] );
|
||||
$expires_offset = 31536000;
|
||||
$expires_offset = 31536000; // 1 year
|
||||
$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 = 31536000;
|
||||
$expires_offset = 31536000; // 1 year
|
||||
$out = '';
|
||||
|
||||
$wp_styles = new WP_Styles();
|
||||
|
|
|
@ -73,7 +73,7 @@ function wp_initial_constants( ) {
|
|||
if ( !defined('SHORTINIT') )
|
||||
define('SHORTINIT', false);
|
||||
|
||||
// Constants for expressing human-interval intervals
|
||||
// Constants for expressing human-readable intervals
|
||||
// in their respective number of seconds.
|
||||
define( 'MINUTE_IN_SECONDS', 60 );
|
||||
define( 'HOUR_IN_SECONDS', 60 * MINUTE_IN_SECONDS );
|
||||
|
|
|
@ -19,7 +19,7 @@ function get_file($path) {
|
|||
return @file_get_contents($path);
|
||||
}
|
||||
|
||||
$expires_offset = 31536000;
|
||||
$expires_offset = 31536000; // 1 year
|
||||
|
||||
header('Content-Type: application/x-javascript; charset=UTF-8');
|
||||
header('Vary: Accept-Encoding'); // Handle proxies
|
||||
|
|
Loading…
Reference in New Issue