Make WordPress Core

Ticket #20987: 20987.5.patch

File 20987.5.patch, 1.9 KB (added by SergeyBiryukov, 12 years ago)
  • wp-admin/load-scripts.php

     
    125125
    126126$compress = ( isset($_GET['c']) && $_GET['c'] );
    127127$force_gzip = ( $compress && 'gzip' == $_GET['c'] );
    128 $expires_offset = 31536000;
     128$expires_offset = 31536000; // 1 year
    129129$out = '';
    130130
    131131$wp_scripts = new WP_Scripts();
  • wp-admin/load-styles.php

     
    104104$compress = ( isset($_GET['c']) && $_GET['c'] );
    105105$force_gzip = ( $compress && 'gzip' == $_GET['c'] );
    106106$rtl = ( isset($_GET['dir']) && 'rtl' == $_GET['dir'] );
    107 $expires_offset = 31536000;
     107$expires_offset = 31536000; // 1 year
    108108$out = '';
    109109
    110110$wp_styles = new WP_Styles();
  • wp-includes/default-constants.php

     
    7373        if ( !defined('SHORTINIT') )
    7474                define('SHORTINIT', false);
    7575
    76         // Constants for expressing human-interval intervals
     76        // Constants for expressing human-readable intervals
    7777        // in their respective number of seconds.
    7878        define( 'MINUTE_IN_SECONDS', 60 );
    7979        define( 'HOUR_IN_SECONDS',   60 * MINUTE_IN_SECONDS );
  • wp-includes/js/tinymce/wp-tinymce.php

     
    1919        return @file_get_contents($path);
    2020}
    2121
    22 $expires_offset = 31536000;
     22$expires_offset = 31536000; // 1 year
    2323
    2424header('Content-Type: application/x-javascript; charset=UTF-8');
    2525header('Vary: Accept-Encoding'); // Handle proxies