otto at ottodestruct.com
Fri Sep 21 17:06:33 GMT 2007
Hmm... Maybe my description was incorrect. From what I see, it will
schedule a new event at first point in time that's in the future,
given a starting point and a recurrance interval.
Normally, if I schedule something in the past, it will run on the very
next hit to the site. But this function will push that interval in
there up to the point where it schedules in the future, at the next
correct time given the starting point and the interval.
I'm uncertain if that's intended behavior or not. If it is, then the
function name is pretty poorly chosen.
On 9/21/07, Jennifer Hodgdon <yahgrp at poplarware.com> wrote:
> One more questions for Otto/group:
> Otto wrote:
> > function wp_reschedule_event( $timestamp, $recurrence, $hook, $args =
> > array()) - Reschedules a given event. There's not a lot of reasons to
> > use this.
> From the name of this function, I thought it would first unschedule
> the originally-scheduled event, then put it into the schedule again.
> But looking at the code, it looks to me as though all this function
> does is make sure that $timestamp is in the future, and then call
> wp_schedule_event. Am I missing something?
> Jennifer Hodgdon
> Poplar ProductivityWare * www.poplarware.com
> Web Databases/Scripts * Modeling/Analysis/Palm OS Software
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers