[wp-hackers] Cron-code
Ryan Boren
ryan at boren.nu
Sun Mar 5 03:41:49 GMT 2006
Robert Deaton wrote:
> Second, I'm 90% certain this is a
> bug:
>
> function wp_clear_scheduled_hook($hook) {
> while($timestamp = next_scheduled('scheduled_hook'))
> wp_unschedule_event($timestamp, 'scheduled_hook');
> }
>
> Shouldn't those 'scheduled_hook' strings actually be the $hook that's
> being passed in? How would we unschedule an event like that, if
> they're stored by an arbitrary hook name?
Looks like a bug to me. Submit a bug and a patch that works for you if
you have time, otherwise I'll get to it.
The cron stuff hasn't had a lot of use or testing. If there is anything
you need added, changed, or fixed, shout.
Ryan
More information about the wp-hackers
mailing list