diff --git wp-includes/cron.php wp-includes/cron.php
index 8b88c12..5f4946e 100644
|
|
|
21 | 21 | * @return void|false |
22 | 22 | */ |
23 | 23 | function wp_schedule_single_event( $timestamp, $hook, $args = array()) { |
| 24 | // check timestamp positive number |
| 25 | if ( ! is_numeric( $timestamp ) || $timestamp <= 0 ){ |
| 26 | return ; |
| 27 | } |
| 28 | |
24 | 29 | // don't schedule a duplicate if there's already an identical event due within 10 minutes of it |
25 | 30 | $next = wp_next_scheduled($hook, $args); |
26 | 31 | if ( $next && abs( $next - $timestamp ) <= 10 * MINUTE_IN_SECONDS ) { |