[wp-trac] [WordPress Trac] #39591: Introduce wp_doing_cron()

WordPress Trac noreply at wordpress.org
Mon Jan 16 11:58:32 UTC 2017


#39591: Introduce wp_doing_cron()
-------------------------+------------------------------
 Reporter:  tfrommen     |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Cron API     |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by schlessera):

 Regarding the caching bit, I think it would be necessary to keep the
 internal workings consistent. Otherwise a function might start with
 `wp_doing_cron()` giving `true`, and later continue with it giving
 `false`, because a filter might have kicked in.

 I don't think these functions are meant to be able to handle changes
 halfway in-between.

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


More information about the wp-trac mailing list