[wp-trac] [WordPress Trac] #31598: wp_schedule_single_event() should return true on success, false on failure
WordPress Trac
noreply at wordpress.org
Wed Mar 11 16:12:35 UTC 2015
#31598: wp_schedule_single_event() should return true on success, false on failure
--------------------------+-----------------------------
Reporter: GhostToast | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Cron API | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Docbloc for `wp_schedule_single_event()` indicates no return, yet it
returns `null` if the event is already scheduled, or `false` if the event
gets wiped out by a filter. It would be handy if the function returned
`true` on success.
This would aid in logic otherwise performed with `wp_next_scheduled()`
(which is called at the onset of `wp_schedule_single_event()`). Patch
attached.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31598>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list