[wp-trac] [WordPress Trac] #33475: Ensure timestamp is integer when scheduling single events

WordPress Trac noreply at wordpress.org
Mon Sep 7 02:38:14 UTC 2015


#33475: Ensure timestamp is integer when scheduling single events
------------------------------+---------------------
 Reporter:  peterwilsoncc     |       Owner:  dd32
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  4.4
Component:  Cron API          |     Version:  2.1
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+---------------------
Changes (by dd32):

 * owner:   => dd32
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"33936"]:
 {{{
 #!CommitTicketReference repository="" revision="33936"
 Cron: Reject events when the provided `$timestamp` is not a valid
 timestamp.

 Invalid timestamps were previously accepted by the scheduling functions
 but would never be run due to our implementation which caused the cron
 option to forever contain the events.
 This rejects such events which most likely only occur due to developer
 error.

 Props utkarshpatel, wonderboymusic, SergeyBiryukov.
 See #33423, Fixes #33475
 }}}

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


More information about the wp-trac mailing list