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

WordPress Trac noreply at wordpress.org
Fri Aug 21 04:12:35 UTC 2015


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

 * milestone:  Awaiting Review => 4.4


Comment:

 Existing in the past is also valid I believe, cron simply processes any
 events `<= time()`.

 I think the rule should be `is_numeric( $timestamp ) && $timestamp > 0`

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


More information about the wp-trac mailing list