[wp-trac] [WordPress Trac] #31307: cron_request filter should pass $doing_wp_cron as an argument to callbacks

WordPress Trac noreply at wordpress.org
Fri Dec 18 23:11:00 UTC 2015


#31307: cron_request filter should pass $doing_wp_cron as an argument to callbacks
-------------------------+------------------------------
 Reporter:  ericlewis    |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Cron API     |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by DrewAPicture):

 Replying to [comment:3 ericlewis]:
 > Can we add parameters to `apply_filters()` calls without breaking stuff?

 We add new parameters all the time (with corresponding changelog entries).
 Due to the architecture of requiring explicit argument counts in
 `add_filter|action()`, adding additional args should have no effect on
 legacy code.

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


More information about the wp-trac mailing list