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

WordPress Trac noreply at wordpress.org
Thu Jul 10 19:39:51 UTC 2025


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

 * owner:  (none) => johnjamesjacoby
 * status:  new => assigned
 * milestone:  Awaiting Review => 6.9


Comment:

 [attachment:"34913-6.9.diff"] is a refresh of 34913.diff with the
 following modifications:

 * refreshed against (trunk for 6.9)
 * Move new deprecation notices after more-strict `$timestamp` checks (from
 r33936). This avoids calling `_cron_cast_to_array_helper()` if the
 timestamp is not valid anyways, and also validates parameters in the order
 they are defined in.

 Committer: `db_version` will have changed by 6.9.0 and the commit will
 need to account for that.

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


More information about the wp-trac mailing list