Open tivnet opened 8 years ago
I believe that should be a developer decision. That is his/her responsibility to include and launch the code when needed, not the library's.
Unless we know for sure that no actions on plugins must be performed by us when unattended.
... then we must prevent those actions from happening.
Ok, lets reduce the impact of a library on everything.
DOING_CRON
, I believe, will be covered by DOING_AJAX
. They do not go together.
We may want to check for:
is_admin() && !ajax
plugins
.
If we should operate only under admin and not AJAX (and not CRON?) then should those checks be in the class, stopping all work if we are at the front, and returning
true
on validation?