[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
Sun Sep 21 10:41:22 UTC 2025
#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: new
Priority: normal | Milestone: 6.9
Component: Cron API | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests dev- | Focuses:
feedback changes-requested |
-------------------------------------------------+-------------------------
Changes (by rollybueno):
* keywords: has-patch has-unit-tests => has-patch has-unit-tests dev-
feedback changes-requested
Comment:
Hey @rishabhwp,
I see that you have this code in `wp_unschedule_event` but not in
`wp_schedule_single_event`?:
{{{
if ( ! is_numeric( $timestamp ) || $timestamp < 0 ) {
}}}
When in fact both function shares same validation?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63987#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list