WP_Automatic_Updater::is_vcs_checkout( string $context )
Checks for version control checkouts.
Description
Checks for Subversion, Git, Mercurial, and Bazaar. It recursively looks up the filesystem to the top of the drive, erring on the side of detecting a VCS checkout somewhere.
ABSPATH is always checked in addition to whatever $context
is (which may be the wp-content directory, for example). The underlying assumption is that if you are using version control anywhere, then you should be making decisions for how things get updated.
Parameters
- $context
-
(Required) The filesystem path to check, in addition to ABSPATH.
Return
(bool) True if a VCS checkout was discovered at $context
or ABSPATH, or anywhere higher. False otherwise.
Source
File: wp-admin/includes/class-wp-automatic-updater.php
Changelog
Version | Description |
---|---|
3.7.0 | Introduced. |