diff --git a/wp-admin/includes/class-wp-upgrader.php b/wp-admin/includes/class-wp-upgrader.php index 7ea3b55ee9..0e6b5bb0ec 100644 --- a/wp-admin/includes/class-wp-upgrader.php +++ b/wp-admin/includes/class-wp-upgrader.php @@ -1507,7 +1507,7 @@ class WP_Automatic_Upgrader { // Search all directories we've found for evidence of version control. foreach ( $vcs_dirs as $vcs_dir ) { foreach ( $check_dirs as $check_dir ) { - if ( $checkout = is_dir( rtrim( $check_dir, '\\/' ) . "/$vcs_dir" ) ) + if ( $checkout = @is_dir( rtrim( $check_dir, '\\/' ) . "/$vcs_dir" ) ) break 2; } }