Changeset 21996 for trunk/wp-includes/cron.php
- Timestamp:
- 09/25/2012 05:26:19 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/cron.php
r21954 r21996 23 23 // don't schedule a duplicate if there's already an identical event due in the next 10 minutes 24 24 $next = wp_next_scheduled($hook, $args); 25 if ( $next && $next <= $timestamp + 600)25 if ( $next && $next <= $timestamp + 10 * MINUTE_IN_SECONDS ) 26 26 return; 27 27 … … 207 207 $lock = get_transient('doing_cron'); 208 208 209 if ( $lock > $gmt_time + 10 *60)209 if ( $lock > $gmt_time + 10 * MINUTE_IN_SECONDS ) 210 210 $lock = 0; 211 211 … … 319 319 function wp_get_schedules() { 320 320 $schedules = array( 321 'hourly' => array( 'interval' => 3600, 'display' => __('Once Hourly') ),322 'twicedaily' => array( 'interval' => 43200, 'display' => __('Twice Daily') ),323 'daily' => array( 'interval' => 86400, 'display' => __('Once Daily') ),321 'hourly' => array( 'interval' => HOUR_IN_SECONDS, 'display' => __( 'Once Hourly' ) ), 322 'twicedaily' => array( 'interval' => 12 * HOUR_IN_SECONDS, 'display' => __( 'Twice Daily' ) ), 323 'daily' => array( 'interval' => DAY_IN_SECONDS, 'display' => __( 'Once Daily' ) ), 324 324 ); 325 325 return array_merge( apply_filters( 'cron_schedules', array() ), $schedules );
Note: See TracChangeset
for help on using the changeset viewer.