WordPress.org

Make WordPress Core

Changeset 21997


Ignore:
Timestamp:
09/25/2012 07:05:48 AM (6 years ago)
Author:
nacin
Message:

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

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/load-scripts.php

    r21996 r21997  
    126126$compress = ( isset($_GET['c']) && $_GET['c'] );
    127127$force_gzip = ( $compress && 'gzip' == $_GET['c'] );
    128 $expires_offset = YEAR_IN_SECONDS;
     128$expires_offset = 31536000;
    129129$out = '';
    130130
  • trunk/wp-admin/load-styles.php

    r21996 r21997  
    105105$force_gzip = ( $compress && 'gzip' == $_GET['c'] );
    106106$rtl = ( isset($_GET['dir']) && 'rtl' == $_GET['dir'] );
    107 $expires_offset = YEAR_IN_SECONDS;
     107$expires_offset = 31536000;
    108108$out = '';
    109109
  • trunk/wp-includes/js/tinymce/wp-tinymce.php

    r21996 r21997  
    2020}
    2121
    22 $expires_offset = YEAR_IN_SECONDS;
     22$expires_offset = 31536000;
    2323
    2424header('Content-Type: application/x-javascript; charset=UTF-8');
Note: See TracChangeset for help on using the changeset viewer.