WordPress.org

Make WordPress Core

Changeset 21996 for trunk/wp-mail.php


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

    r20682 r21996  
    3131set_transient('mailserver_last_checked', true, WP_MAIL_INTERVAL);
    3232
    33 $time_difference = get_option('gmt_offset') * 3600;
     33$time_difference = get_option('gmt_offset') * HOUR_IN_SECONDS;
    3434
    3535$phone_delim = '::';
Note: See TracChangeset for help on using the changeset viewer.