Automattic / Cron-Control

A fresh take on running WordPress's cron system, allowing parallel processing

Home Page:https://wordpress.org/plugins/wp-cron-control/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

REST API: set `DOING_CRON` for `list` endpoint

ethitter opened this issue · comments

For consistency, and to accommodate conditionally loading cron-related callbacks and functionality, all endpoints should set the constant DOING_CRON. Otherwise, callbacks may appear empty when they are not, which runs afoul of the empty-action-skipping feature (Events::action_has_callback_or_should_run_anyway()).