[wp-trac] [WordPress Trac] #19431: wp_next_scheduled reruns start time, not next time
WordPress Trac
wp-trac at lists.automattic.com
Sat Dec 3 07:49:27 UTC 2011
#19431: wp_next_scheduled reruns start time, not next time
--------------------------+------------------------------
Reporter: maccast | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Cron | Version: 3.2.1
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by nacin):
wp_schedule_event()'s $timestamp is when you want to run the event. So if
you want to run it in five minutes, you'd do time() + 300.
Thus, the $timestamp returned by wp_next_scheduled() would be whatever
time() + 300 was equal to at the time of scheduling.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19431#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list