Make WordPress Core

Opened 5 years ago

Last modified 16 months ago

#47389 new enhancement

Display warning message on the Updates screen when a VCS is in use

Reported by: johnbillion's profile johnbillion Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.7
Component: Upgrade/Install Keywords: needs-patch
Focuses: Cc:


When a version control system is in use, an appropriate warning message should be shown on the Updates screen, recommending that updates be performed via their VCS instead. The update action shouldn't be blocked, though.

Similarly, for every plugin and theme that has an update available, WordPress should check whether the individual plugin or theme's directory is under version control and present a similar warning because updating a plugin or theme will completely wipe out its directory, therefore allowing version history to be lost.

The WP_Upgrader::is_vcs_checkout( ... ) method can be used to detect VCS usage.

Change History (1)

#1 @afragen
16 months ago

If a VCS is in use, do you really want core to be able to update? That would replace the plugin/theme with a non-VCS version.

Local Development might do what you want.

Last edited 16 months ago by afragen (previous) (diff)
Note: See TracTickets for help on using tickets.