WordPress.org

Plugin Directory

Changeset 734774


Ignore:
Timestamp:
07/01/13 19:41:46 (10 months ago)
Author:
georgestephanis
Message:

Jetpack: Adding MINUTE_IN_SECONDS and the like for backward-compatability with WordPress 3.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jetpack/trunk/jetpack.php

    r730924 r734774  
    2323 
    2424define( 'JETPACK_MASTER_USER', true ); 
     25 
     26// Constants for expressing human-readable intervals 
     27// in their respective number of seconds. 
     28// Introduced in WordPress 3.5, specified here for backward compatability. 
     29defined( 'MINUTE_IN_SECONDS' ) or define( 'MINUTE_IN_SECONDS', 60 ); 
     30defined( 'HOUR_IN_SECONDS' )   or define( 'HOUR_IN_SECONDS',   60 * MINUTE_IN_SECONDS ); 
     31defined( 'DAY_IN_SECONDS' )    or define( 'DAY_IN_SECONDS',    24 * HOUR_IN_SECONDS   ); 
     32defined( 'WEEK_IN_SECONDS' )   or define( 'WEEK_IN_SECONDS',    7 * DAY_IN_SECONDS    ); 
     33defined( 'YEAR_IN_SECONDS' )   or define( 'YEAR_IN_SECONDS',  365 * DAY_IN_SECONDS    ); 
    2534 
    2635/* 
Note: See TracChangeset for help on using the changeset viewer.