#52279 closed defect (bug) (wontfix)
This site appears to be under version control. Automatic updates are disabled. Flag to disable this behaviour?
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 5.6 |
Component: | Upgrade/Install | Keywords: | |
Focuses: | Cc: |
Description
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?
Cheers,
Change History (4)
#3
@
4 years 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
@
4 years 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' );
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.