[wp-trac] [WordPress Trac] #30858: Scheduled cron job with custom interval is unset on next cron event

WordPress Trac noreply at wordpress.org
Mon Dec 29 11:43:11 UTC 2014


#30858: Scheduled cron job with custom interval is unset on next cron event
--------------------------+------------------------------
 Reporter:  mrtphoto      |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Cron API      |     Version:  4.1
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:  administration
--------------------------+------------------------------
Changes (by mrtphoto):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 I was doing some cleanup work on the plugin to share it for
 troubleshooting and found that my addition to the cron_schedules filter
 ended up inside the hook for admin_init. So, on the options page is was
 working. But when wp-cron ran "twomin" was no longer a valid interval and
 was removed.
 I moved it outside admin_init and it works fine now. I'm going to assume
 that the removal of the cron job with an invalid interval is a feature.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30858#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list