Make WordPress Core

Opened 11 months ago

Closed 11 months ago

Last modified 9 months ago

#52279 closed defect (bug) (wontfix)

This site appears to be under version control. Automatic updates are disabled. Flag to disable this behaviour?

Reported by: stacksoft Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.6
Component: Upgrade/Install Keywords:
Focuses: Cc:


I am using Git to deploy and manage my WordPress site. I noticed that WordPress disables automatic updates when it detects version control. Is there an environment variable or flag to disable this behaviour? Maybe I can add something to wp-config.php so I can enable automatic updates while using VC?

We use git heavily for deployments, but we want to maintain automatic updates. We just commit and push the updated core files when an update happens. I am quite puzzled by this default behaviour it seems to promote insecure deployments if you use git?


Change History (4)

#1 @stacksoft
11 months ago

I tried setting define( 'WP_AUTO_UPDATE_CORE', true ); and it still disables automatic upgrades. This is a hard check without anyway to override? This is a major issue for us.

#2 @stacksoft
11 months ago

Last edited 11 months ago by stacksoft (previous) (diff)

#3 @stacksoft
11 months ago

  • Resolution set to wontfix
  • Status changed from new to closed

Closing this issue since it's been around 3.7 and probably won't be changed.

#4 @desrosj
9 months ago

  • Component changed from General to Upgrade/Install
  • Milestone Awaiting Review deleted

Hi @stacksoft,

Welcome to Trac! My apologies it took a bit to receive a response.

As you identified in your comment before modifying it, the automatic_updates_is_vcs_checkout filter can be used to override this behavior. The best option for this is probably a plugin file in the mu-plugin folder of your sites. This one line should accomplish your goal:

add_filter( 'automatic_updates_is_vcs_checkout', '__return_false' );
Note: See TracTickets for help on using tickets.