[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 Apr 17 19:26:37 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 ericlewis):

 Replying to [comment:1 F J Kaiser]:
 > Why is fetching the value from the key "delicate"? The key actually is
 ... `key`.

 If a value is filterable then a developer should make no assumption about
 what the value they are filtering is, as a previous filter could've done
 anything it wants to the data.

 Anything that's critical to the context should be passed along as
 arguments into the `apply_filters()` invocation.

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


More information about the wp-trac mailing list