[wp-trac] [WordPress Trac] #34913: Unscheduling cron jobs fails when original arguments were not an array.

WordPress Trac noreply at wordpress.org
Mon Sep 3 06:00:57 UTC 2018


#34913: Unscheduling cron jobs fails when original arguments were not an array.
-------------------------------------------------+-------------------------
 Reporter:  jrf                                  |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Cron API                             |     Version:  3.0
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests 2nd-        |     Focuses:
  opinion needs-refresh                          |
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):

 * keywords:  has-patch has-unit-tests 2nd-opinion => has-patch has-unit-
     tests 2nd-opinion needs-refresh


Comment:

 The new function `wp_get_scheduled_event()` to be shipped in WordPress 5.0
 also fails to include the check in `wp_clear_scheduled_hook()`.

 I'm still digging into this ticket but if it's to be fixed, the existing
 patch will need to be refreshed beforehand. I've marked it as such but I
 can figure out the goal from the existing patch so a refresh can wait
 until a milestone is added.

 My current leaning is toward consistency within the API.

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


More information about the wp-trac mailing list