a8cteam51/safety-net

Make plugin Production-safe

Closed this issue · 2 comments

We should make the plugin production-safe:

Action items:

  • Create utility function that checks if the site is development site
  • Add a call to that function in the auto-run function
  • Add a call to that function on the tools page, conditionally disabling the buttons and adding some language about it being a production site and how to set the constant
  • Add a call to that function in each of the actual functions that do things (so someone doesn't somehow trigger them manually)
  • Add a call to that function to conditionally not display the admin notice

Closed here: #45