Make WordPress Core


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

    r21944 r21996  
    11511151function _wp_delete_orphaned_draft_menu_items() {
    11521152    global $wpdb;
    1153     $delete_timestamp = time() - (60*60*24*EMPTY_TRASH_DAYS);
     1153    $delete_timestamp = time() - ( DAY_IN_SECONDS * EMPTY_TRASH_DAYS );
    11541154
    11551155    // delete orphaned draft menu items
Note: See TracChangeset for help on using the changeset viewer.