Changeset 29939 for trunk/src/wp-includes/cron.php
- Timestamp:
- 10/17/2014 07:16:26 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/cron.php
r29732 r29939 21 21 */ 22 22 function wp_schedule_single_event( $timestamp, $hook, $args = array()) { 23 // don't schedule a duplicate if there's already an identical event due in the next 10 minutes23 // don't schedule a duplicate if there's already an identical event due within 10 minutes of it 24 24 $next = wp_next_scheduled($hook, $args); 25 if ( $next && $next <= $timestamp + 10 * MINUTE_IN_SECONDS ) 26 return; 25 if ( $next && abs( $next - $timestamp ) <= 10 * MINUTE_IN_SECONDS ) { 26 return; 27 } 27 28 28 29 $crons = _get_cron_array();
Note: See TracChangeset
for help on using the changeset viewer.