wp-migrate-db-anonymization icon indicating copy to clipboard operation
wp-migrate-db-anonymization copied to clipboard

Display warning about using the plugin on non live sites

Open polevaultweb opened this issue 7 years ago • 4 comments

The plugin should be only installed on a live site. Show a warning if installed on a local/test/staging/dev site.

polevaultweb avatar May 29 '18 10:05 polevaultweb

What is the problem if installed on non live sites?!

ibes avatar Jun 02 '18 22:06 ibes

@ibes if it's installed on a dev site and then you push to a live site, it will push anonymized data. The idea is it is installed on live to protect the 'export' of live data.

polevaultweb avatar Jun 04 '18 08:06 polevaultweb

@polevaultweb How do you plan to implement this change? Asking so I can do some tests in preparation for this change. We keep important plugins in mu-plugins so I was thinking to check the site address (or something similar) before including the plugin on production sites.

jongc avatar Jul 03 '18 16:07 jongc

@jongc I'm not too sure of the best approach at the moment, but your implementation sounds great for you situation to protect against it being loaded on non-prod sites 👍

polevaultweb avatar Jul 05 '18 08:07 polevaultweb