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

WordPress Trac noreply at wordpress.org
Mon Jan 16 03:27:24 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 dd32):

 I don't see any harm in adding this.

 It could make life easier for dropins such as cavalcade, but for BC
 purposes I would expect having to define the constant for a while to come
 yet, as it's unlikely those checking if cron is in play are going to
 utilise these methods until they drop support for 4.7 (which is quite some
 way off I wouls suspect).

 Only nit-pick would be that the patch assigns the `$doing_cron` variable
 in some cases where it'd otherwise be called repetitively, I'm not sure
 that level of optimising is needed - but it can't hurt I guess.

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


More information about the wp-trac mailing list