Sergey Biryukov
04967a68b6
Upgrade/Install: Introduce WP_Automatic_Updater::is_allowed_dir() method.
...
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 avoids 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 [25421], [25700], [25764], [25835], [25859].
Props costdev, markjaquith, meyegui, dd32, arnolp, robin-labadie, hellofromTonya, afragen, pbiron, SergeyBiryukov.
Fixes #42619 .
Built from https://develop.svn.wordpress.org/trunk@55425
git-svn-id: http://core.svn.wordpress.org/trunk@54958 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-02-26 15:19:21 +00:00
..
2022-09-11 20:46:10 +00:00
2022-11-10 19:40:11 +00:00
2023-02-19 15:05:22 +00:00
2022-11-29 15:51:14 +00:00
2021-09-09 13:48:56 +00:00
2022-08-29 12:46:10 +00:00
2022-08-29 12:46:10 +00:00
2021-09-09 13:59:56 +00:00
2022-04-11 11:50:01 +00:00
2023-02-23 10:38:21 +00:00
2023-02-23 10:38:21 +00:00
2022-09-12 15:47:14 +00:00
2022-03-22 16:25:03 +00:00
2022-03-26 15:28:08 +00:00
2021-09-09 13:59:56 +00:00
2022-11-29 15:51:14 +00:00
2021-08-29 01:33:58 +00:00
2023-02-23 10:38:21 +00:00
2022-05-20 17:38:14 +00:00
2023-02-23 10:38:21 +00:00
2023-02-07 17:10:21 +00:00
2022-05-20 17:38:14 +00:00
2021-09-09 13:03:55 +00:00
2021-09-09 12:39:59 +00:00
2023-02-07 17:10:21 +00:00
2022-08-29 12:46:10 +00:00
2023-02-07 17:10:21 +00:00
2023-02-26 15:19:21 +00:00
2023-02-07 17:10:21 +00:00
2022-09-27 18:57:13 +00:00
2023-02-22 14:25:25 +00:00
2022-09-12 15:47:14 +00:00
2023-02-16 22:13:28 +00:00
2023-02-16 22:13:28 +00:00
2023-02-16 22:13:28 +00:00
2023-02-16 22:13:28 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2023-02-07 17:10:21 +00:00
2023-02-07 21:21:18 +00:00
2023-02-07 17:10:21 +00:00
2022-10-04 03:47:15 +00:00
2023-02-07 17:10:21 +00:00
2023-02-07 17:10:21 +00:00
2022-10-04 03:47:15 +00:00
2023-02-07 17:10:21 +00:00
2022-10-04 03:47:15 +00:00
2023-02-07 17:10:21 +00:00
2022-03-10 19:22:01 +00:00
2023-02-18 14:23:21 +00:00
2022-09-19 21:08:10 +00:00
2023-02-07 21:21:18 +00:00
2022-11-29 15:51:14 +00:00
2023-02-23 10:38:21 +00:00
2022-09-12 15:47:14 +00:00
2023-02-07 17:10:21 +00:00
2022-10-04 03:47:15 +00:00
2022-10-04 03:47:15 +00:00
2022-09-12 15:47:14 +00:00
2023-02-07 13:28:18 +00:00
2023-02-07 17:10:21 +00:00
2022-07-20 22:15:10 +00:00
2022-09-19 23:24:11 +00:00
2021-10-19 23:09:00 +00:00
2023-02-23 10:38:21 +00:00
2022-12-09 11:54:13 +00:00
2021-12-07 12:20:02 +00:00
2022-12-09 11:54:13 +00:00
2023-02-23 10:38:21 +00:00
2023-02-07 17:10:21 +00:00
2022-09-19 22:53:10 +00:00
2022-07-29 09:22:10 +00:00
2022-10-04 03:47:15 +00:00
2023-02-07 17:10:21 +00:00
2022-04-17 14:44:07 +00:00
2023-02-23 11:06:19 +00:00
2023-02-07 17:10:21 +00:00
2022-09-20 02:51:09 +00:00
2022-09-20 02:51:09 +00:00
2023-02-23 11:13:22 +00:00
2023-02-07 21:21:18 +00:00
2023-02-23 10:38:21 +00:00
2022-11-26 09:12:17 +00:00
2023-02-23 11:06:19 +00:00
2023-02-07 17:10:21 +00:00
2022-08-11 13:55:08 +00:00
2023-02-19 15:05:22 +00:00
2023-01-30 10:27:16 +00:00
2022-12-06 13:42:13 +00:00
2022-11-29 15:51:14 +00:00
2021-05-09 20:27:02 +00:00
2023-02-02 13:59:18 +00:00
2023-02-07 17:10:21 +00:00
2023-02-07 17:10:21 +00:00
2023-02-07 17:10:21 +00:00
2022-11-29 15:51:14 +00:00
2023-02-08 15:03:19 +00:00
2023-02-07 17:10:21 +00:00
2023-02-03 14:41:26 +00:00
2023-02-07 17:46:20 +00:00
2023-02-07 17:10:21 +00:00