Verified Commit 91fd1cd8 authored by Erick Hitter's avatar Erick Hitter
Browse files

Adjust rescheduled event timestamp, if we can

parent 5c888155
......@@ -70,7 +70,9 @@ class Events extends Singleton {
if ( false === $event['args']['schedule'] ) {
wp_unschedule_event( $event['timestamp'], $event['action'], $event['args']['args'] );
} else {
wp_reschedule_event( $event['timestamp'], $event['args']['schedule'], $event['action'], $event['args']['args'] );
$timestamp = $event['timestamp'] + ( isset( $event['args']['interval'] ) ? $event['args']['interval'] : 0 );
wp_reschedule_event( $timestamp, $event['args']['schedule'], $event['action'], $event['args']['args'] );
unset( $timestamp );
}
continue;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment