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:
Andrew Nacin 2012-11-10 18:13:09 +00:00
parent 944066ef83
commit e7767b1eba
4 changed files with 4 additions and 4 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 = 31536000;
$expires_offset = 31536000; // 1 year
$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 = 31536000;
$expires_offset = 31536000; // 1 year
$out = '';
$wp_styles = new WP_Styles();

View File

@ -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 );

View File

@ -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