Make WordPress Core


Ignore:
Timestamp:
09/25/2012 05:26:19 AM (13 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/includes/plugin-install.php

    r21944 r21996  
    7575        return $tags;
    7676
    77     set_site_transient('poptags_' . $key, $tags, 10800); // 3 * 60 * 60 = 10800
     77    set_site_transient( 'poptags_' . $key, $tags, 3 * HOUR_IN_SECONDS );
    7878
    7979    return $tags;
Note: See TracChangeset for help on using the changeset viewer.