[wp-trac] [WordPress Trac] #8789: wp_schedule_single_event() weirdness

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 3 12:08:15 GMT 2009


#8789: wp_schedule_single_event() weirdness
--------------------------+-------------------------------------------------
 Reporter:  scribu        |       Owner:  anonymous
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  2.7.1    
Component:  General       |     Version:  2.7      
 Severity:  normal        |    Keywords:           
--------------------------+-------------------------------------------------
 I've written this test plugin: http://wordpress.pastebin.ca/1298571

 If I set it to a time in the past, like

   wp_schedule_single_event(time(), CRON_HOOK);

 it fires twice on every page load.

 If I set it in the future, say

   wp_schedule_single_event(time()+10, CRON_HOOK);

 it fires once, or not at all, even if I clear the hook first.

 Tested on:
 WP 2.7.1-alpha-10188 on localhost (Ubuntu 8.10 + LAMP, PHP5).
 WP 2.7 stable on live server (Linux, PHP5)

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8789>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list