TGMPA / TGM-Plugin-Activation

TGM Plugin Activation is a PHP library that allows you to easily require or recommend plugins for your WordPress themes (and plugins). It allows your users to install, update and even automatically activate plugins in singular or bulk fashion using native WordPress classes, functions and interfaces. You can reference bundled plugins, plugins from the WordPress Plugin Repository or even plugins hosted elsewhere on the internet.
http://tgmpluginactivation.com/
GNU General Public License v2.0
1.76k stars 429 forks source link

Backup old plugin before removing it #647

Open themenow opened 7 years ago

themenow commented 7 years ago

I was working hard on several local sites, and I updated my plugin in one of them today on seeing TGMPA update notification, so it removed old plugin and install the new version from which turned out is the development site. The old plugin is removed along with "node_modules/", "gruntfile.js" and "packages.json" inside, I have the latter two file in my SVN repository so they are not problem, but I have to reinstall all grunt packages now, there isn't a trash that you can restore from.

Hope there is a backup in future release.

jrfnl commented 7 years ago

TGMPA uses the build WP mechanism to upgrade plugins. I suggest you open an issue in WordPress Trac requesting this. All the same, it sounds like the plugin you upgraded was distributed incorrectly, so contacting the plugin owner is advisable as well.

themenow commented 7 years ago

Ok, I see. It's my plugin btw.