Title: Protect Version Controlled Updates
Author: RobertGillmer
Published: <strong>June 3, 2016</strong>
Last modified: June 21, 2016

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/protect-version-controlled-updates.svg)

# Protect Version Controlled Updates

 By [RobertGillmer](https://profiles.wordpress.org/robertgillmer/)

[Download](https://downloads.wordpress.org/plugin/protect-version-controlled-updates.1.1.0.zip)

 * [Details](https://wordpress.org/plugins/protect-version-controlled-updates/#description)
 * [Reviews](https://wordpress.org/plugins/protect-version-controlled-updates/#reviews)
 *  [Installation](https://wordpress.org/plugins/protect-version-controlled-updates/#installation)
 * [Development](https://wordpress.org/plugins/protect-version-controlled-updates/#developers)

 [Support](https://wordpress.org/support/plugin/protect-version-controlled-updates/)

## Description

This plugin is built to be used on production servers which are version-controlled
with Git. If plugins are updated directly on production, they can get out of sync
with the repo, and later pushes to the server might “roll back” plugin updates which
weren’t committed to the repo.

Users who try to update a plugin via the Plugins screen will get a modal window 
asking for confirmation. Admins can also block updates entirely, so users will still
get the modal window but will only have a cancel button.

The modal title and modal content are admin-configurable through the options page.

Please understand, we’re not advocating _not_ updating plugins. You should still
update all the things with the quickness. Just do it in the repo and push the changes
to the server.

## Screenshots

[⌊The modal title and description are user-changable.  Note that both the plugins
and themes are set to "warn."⌉⌊The modal title and description are user-changable.
Note that both the plugins and themes are set to "warn."⌉[

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.⌉⌊The
actual modal.  Note that there's a cancel button and an update button.⌉[

The actual modal. Note that there’s a cancel button and an update button.

[⌊Setting both plugins and themes to "block."⌉⌊Setting both plugins and themes to"
block."⌉[

Setting both plugins and themes to “block.”

[⌊The actual modal, now with only a cancel button.⌉⌊The actual modal, now with only
a cancel button.⌉[

The actual modal, now with only a cancel button.

## Installation

If you’re running a version-controlled environment, I’m pretty sure that installing
plugins is old hat to you. But just in case…

 1. Upload the plugin files to the `/wp-content/plugins/plugin-name` directory, or 
    install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. Use the Settings->PVCU Options screen to configure the plugin.

## 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.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Protect Version Controlled Updates” is open source software. The following people
have contributed to this plugin.

Contributors

 *   [ RobertGillmer ](https://profiles.wordpress.org/robertgillmer/)

[Translate “Protect Version Controlled Updates” into your language.](https://translate.wordpress.org/projects/wp-plugins/protect-version-controlled-updates)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/protect-version-controlled-updates/),
check out the [SVN repository](https://plugins.svn.wordpress.org/protect-version-controlled-updates/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/protect-version-controlled-updates/)
by [RSS](https://plugins.trac.wordpress.org/log/protect-version-controlled-updates/?limit=100&mode=stop_on_copy&format=rss).

## 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

 * Initial release

## Meta

 *  Version **1.1.0**
 *  Last updated **10 years ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 4.2 or higher **
 *  Tested up to **4.5.33**
 * Tags
 * [git](https://wordpress.org/plugins/tags/git/)[version control](https://wordpress.org/plugins/tags/version-control/)
 *  [Advanced View](https://wordpress.org/plugins/protect-version-controlled-updates/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/protect-version-controlled-updates/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/protect-version-controlled-updates/reviews/)

## Contributors

 *   [ RobertGillmer ](https://profiles.wordpress.org/robertgillmer/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/protect-version-controlled-updates/)