Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use clear scheduled hook to remove package status check
The `wp_next_scheduled()` response appears to be subject to caching so for custom cron job intervals such as 1 minute in this case the next scheduled time can be too old for it to ever match the actual next event. This means the current method for clearing the scheduled task fails silently. Using clear scheduled hook is more appropriate here because it is the arguments that are unique to the task. Fixes #379
- Loading branch information