Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
WP Plugins
Cron-Control
Commits
91fd1cd8
Verified
Commit
91fd1cd8
authored
Dec 12, 2016
by
Erick Hitter
Browse files
Adjust rescheduled event timestamp, if we can
parent
5c888155
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/class-events.php
View file @
91fd1cd8
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment