Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Site Health: Check if the directories are allowed when testing for a …
…VCS checkout. As part of determining whether to perform automatic updates, WordPress checks if it is running within a version-controlled environment, recursively looking up the filesystem to the top of the drive, looking for a Subversion, Git, Mercurial, or Bazaar directory, erring on the side of detecting a VCS checkout somewhere. This commit reuses `WP_Automatic_Updater::is_allowed_dir()` in the Site Health test to avoid a PHP warning if the `open_basedir` directive is in use and any of the directories checked in the process are not allowed: {{{ is_dir(): open_basedir restriction in effect. File(/.git) is not within the allowed path(s) }}} Follow-up to [44986], [55425]. Props Keffr3n, narenin. Fixes #61834. git-svn-id: https://develop.svn.wordpress.org/trunk@58921 602fd350-edb4-49c9-b593-d223f7449a82
- Loading branch information