This plugin warns or prevents users from updating plugins on a Git version-controlled server.
Screenshots
The modal title and description are user-changable. Note that both the plugins and themes are set to "warn."
The actual modal. Note that there's a cancel button and an update button.
Setting both plugins and themes to "block."
The actual modal, now with only a cancel button.
FAQ
Does this auto-detect if I have a Git or SVN version-controllled server?
This plugin looks in all the normal spots for .git and/or .svn folders – the root, the wp-content folder, the plugins folder, the themes folder, and even in the current theme and the parent theme (if applicable).
If it doesn’t autodetect my installation, what then?
You can manually turn on the protection from the options screen.
Can I turn the protection off?
You can turn protection off individually for either plugins or themes.
Which pages are protected?
The plugins page (plugins.php), the plugin install page (plugin-install.php), and the general updates page (update-core.php). Future versions will protect the themes page (themes.php).
I can still update my theme from the Themes page, even with protection. What gives?
That’s a known issue. Future versions will protect theme updates from the Themes screen.
Does this protect plugin or theme deletion?
Not at this time, but that’s planned for a future version.
Does this protect core?
Not at this time, but that’s planned for a future version.
ChangeLog
1.1
- Extensive refactoring of functions to allow for separate choices for plugins, themes, and core (upcoming release).
- Removed the checkbox to disable protection.
- Merged the protection disabling into the radio button choices for plugins and for themes.
- Updated JS to intercept form submissions for updates.
1.0