REST API: set `DOING_CRON` for `list` endpoint
ethitter opened this issue · comments
Erick Hitter commented
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()
).