[wp-trac] [WordPress Trac] #45797: Add function for getting "ready" cron jobs with preflight filter for hijacking.

WordPress Trac noreply at wordpress.org
Tue Jan 8 21:48:14 UTC 2019


#45797: Add function for getting "ready" cron jobs with preflight filter for
hijacking.
------------------------------+----------------------------
 Reporter:  peterwilsoncc     |       Owner:  peterwilsoncc
     Type:  enhancement       |      Status:  closed
 Priority:  normal            |   Milestone:  5.1
Component:  Cron API          |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+----------------------------
Changes (by peterwilsoncc):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"44483" 44483]:
 {{{
 #!CommitTicketReference repository="" revision="44483"
 Cron API: Add function and filter to return ready cron jobs.

 Add the function `wp_get_ready_cron_jobs()` to return a modified version
 of the cron array limited to jobs ready to be run, ie with a timestamp of
 `time()` or earlier.

 The new function includes the filter `pre_get_ready_cron_jobs` to allow
 for custom cron storage systems. This rounds out the functionality added
 in #32656.

 Props Pento for code review.
 Fixes #45797.
 }}}

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


More information about the wp-trac mailing list