Make WordPress Core


Ignore:
Timestamp:
09/25/2012 05:26:19 AM (11 years ago)
Author:
nacin
Message:

Introduce constants to allow for easier expression of time periods in seconds. Adds MINUTE_IN_SECONDS, HOUR_IN_SECONDS, DAY_IN_SECONDS, WEEK_IN_SECONDS, YEAR_IN_SECONDS. props nbachiyski, SergeyBiryukov. fixes #20987.

File:
1 edited

Legend:

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

    r19684 r21996  
    105105$force_gzip = ( $compress && 'gzip' == $_GET['c'] );
    106106$rtl = ( isset($_GET['dir']) && 'rtl' == $_GET['dir'] );
    107 $expires_offset = 31536000;
     107$expires_offset = YEAR_IN_SECONDS;
    108108$out = '';
    109109
Note: See TracChangeset for help on using the changeset viewer.