WordPress 3.7 introduces a fantastic new feature, automatic background updates which will speed up the uptake of security patches. Keeping sites up to date is an important step towards maintaining your sites security.
Automatic background updates have been tested vigorously and should work under most setups. To prevent issues WordPress runs a number of checks before enabling automatic updates. One of the checks determines whether the site is under version control.
At iWeb, we version control our sites using Git, we ignore core WordPress files, only keeping track of our code. Because of this we’d like to enable automatic updates, ignoring the version control check WordPress makes. This is possible by filtering the version control check. The name of the filter has changed a few times during the WordPress 3.7 development cycle and has settled as
I’d recommend adding the following code into an mu-plugin:
An official plugin has been released which helps identify why your site may not be able to receive automatic updates. Background Update Tester gives a little more feedback and can help point you in the right direction.
Get the latest eCommerce news, reviews and expert advice in your inbox.