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

Luckily this line of code will override the “under version control” test of the auto update and re-enable automatic updates.

add_filter( 'automatic_updates_is_vcs_checkout', '__return_false');

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 ;)