Post navigation

WordPress

WordPress AutoUpdate fix for Version Controlled Sites

So.. since version 3.7 WordPress has had a neat auto-update function, unfortunately WordPress is also quite cautious so it check to see if the website is using any kind of Version Control and if so disables the auto update function.  BUT what if your using version control but not to actually manage what version of WordPress is installed.

Luckally this line of code will override the “under version control” test of the autoupdate

“`php

<span class="ace_identifier">add_filter</span>( <span class="ace_string">'automatic_updates_is_vcs_checkout'</span>, <span class="ace_string">'__return_false'</span> );

“`

re-enabling the auto-update functionality.

Source:

About Geraint Palmer

I am a front-end developer and software engineer living in Staffordshire, England. I love latte, good restaurants, photography, watching movies and occasionally snowboarding ( except when cartwheeling head first down the slope ;)