[wp-trac] [WordPress Trac] #52448: wp_scheduled_delete WP-Cron Job Cannot Be Unscheduled
WordPress Trac
noreply at wordpress.org
Fri Feb 5 14:10:43 UTC 2021
#52448: wp_scheduled_delete WP-Cron Job Cannot Be Unscheduled
----------------------------+------------------------------
Reporter: daleharrison | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 4.9
Severity: normal | Resolution:
Keywords: 2nd-opinion | Focuses:
----------------------------+------------------------------
Comment (by johnbillion):
Core _could_ check for the existence of an action on the
`wp_scheduled_delete` hook before scheduling the event, we'd need to
confirm that the default hook is always added before the event is
scheduled, and that plugins can remove the action before the event is
scheduled.
The reason WP Crontrol warns about events with no action is because it
helps guard against typos, actions that have unexpectedly gone missing,
etc. It's not really a problem to have a cron event with no action, it's
just useless.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52448#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list