[wp-trac] [WordPress Trac] #63987: wp_get_scheduled_event() incorrectly returns false for cron events scheduled with a timestamp of 0.

WordPress Trac noreply at wordpress.org
Mon Mar 23 14:38:25 UTC 2026


#63987: wp_get_scheduled_event() incorrectly returns false for cron events
scheduled with a timestamp of 0.
---------------------------------------+-----------------------
 Reporter:  codekraft                  |       Owner:  (none)
     Type:  defect (bug)               |      Status:  reopened
 Priority:  normal                     |   Milestone:
Component:  Cron API                   |     Version:
 Severity:  normal                     |  Resolution:
 Keywords:  needs-patch has-test-info  |     Focuses:
---------------------------------------+-----------------------
Changes (by mindctrl):

 * keywords:  has-patch has-unit-tests has-test-info 2nd-opinion close =>
     needs-patch has-test-info
 * status:  closed => reopened
 * resolution:  wontfix =>


Comment:

 @codekraft thanks for explaining the bug path! I like your proposed fix
 and think we should reopen and improve the error checking when non-int
 values are provided.

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


More information about the wp-trac mailing list