Automatic Updates: Disable Automatic updates for Mercurial(HG) and Bazaar(bzr) version control systems in addition to Git and SVN. Props jamescollins. See #22704
git-svn-id: https://develop.svn.wordpress.org/trunk@25650 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
05a01e5964
commit
3fa23828e3
@ -1497,7 +1497,7 @@ class WP_Automatic_Upgrader {
|
|||||||
|
|
||||||
$checkout = false;
|
$checkout = false;
|
||||||
foreach ( array_unique( $stop_dirs ) as $dir ) {
|
foreach ( array_unique( $stop_dirs ) as $dir ) {
|
||||||
if ( file_exists( $dir . '/.svn' ) || file_exists( $dir . '/.git' ) ) {
|
if ( file_exists( $dir . '/.svn' ) || file_exists( $dir . '/.git' ) || file_exists( $dir . '/.hg' ) || file_exists( $dir . '/.bzr' ) ) {
|
||||||
$checkout = true;
|
$checkout = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user