• Erick Hitter's avatar
    Ensure `DOING_CRON` is set for all REST requests · 8f7d9d3c
    Erick Hitter authored
    If code is loaded conditionally when `DOING_CRON` is set, not setting it for all of the plugin's REST endpoints can lead to unexpected behaviour.
    For example, duplicate events can be created infinitely, in combination with the skip-empty-event functionality.
    Fixes #97