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
..
2023-02-21 13:09:42 +00:00
2023-02-23 21:34:19 +00:00
2023-02-21 13:09:42 +00:00
2023-02-21 13:09:42 +00:00
2023-02-23 11:06:19 +00:00
2023-02-22 20:55:23 +00:00
2023-01-20 01:36:10 +00:00
2023-02-21 13:09:42 +00:00
2022-12-08 19:31:17 +00:00
2022-12-06 12:19:15 +00:00
2022-12-12 20:21:12 +00:00
2022-12-19 15:12:11 +00:00
2023-02-17 15:45:24 +00:00
2023-02-03 13:35:20 +00:00
2023-02-01 16:15:15 +00:00
2023-02-22 22:02:23 +00:00
2023-02-23 12:34:18 +00:00
2023-02-21 16:39:19 +00:00
2023-02-20 21:13:27 +00:00
2023-02-06 19:40:16 +00:00
2023-02-02 19:38:19 +00:00
2023-02-14 15:57:21 +00:00
2023-01-24 14:42:17 +00:00
2023-02-21 16:39:19 +00:00
2023-02-15 13:06:21 +00:00
2023-02-04 15:18:16 +00:00
2023-02-03 13:35:20 +00:00
2023-02-13 09:08:23 +00:00
2023-02-11 12:43:22 +00:00
2022-12-15 21:32:17 +00:00
2023-02-03 13:35:20 +00:00
2023-02-03 13:35:20 +00:00
2023-02-07 14:05:20 +00:00
2023-02-07 07:04:52 +00:00
2023-02-01 15:29:13 +00:00
2023-02-06 15:24:16 +00:00
2023-02-07 17:10:21 +00:00
2023-02-23 10:38:21 +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
2023-02-07 17:10:21 +00:00
2023-02-21 16:39:19 +00:00
2023-02-19 15:05:22 +00:00
2023-02-21 16:39:19 +00:00
2023-02-23 10:38:21 +00:00
2022-12-15 21:32:17 +00:00
2022-12-15 21:32:17 +00:00
2023-01-13 14:22:12 +00:00
2023-02-21 01:49:20 +00:00
2023-02-22 14:25:25 +00:00
2023-02-25 10:59:22 +00:00
2023-02-08 17:08:21 +00:00
2023-02-15 23:37:17 +00:00
2023-02-21 16:39:19 +00:00
2023-02-23 10:38:21 +00:00
2023-02-07 12:10:18 +00:00
2023-01-30 10:27:16 +00:00
2023-02-21 15:59:18 +00:00
2023-01-18 09:58:16 +00:00
2023-01-30 15:24:13 +00:00
2023-02-07 17:10:21 +00:00
2023-02-15 22:56:20 +00:00
2023-02-07 16:44:24 +00:00
2023-02-15 22:56:20 +00:00
2023-02-14 14:38:22 +00:00
2023-02-21 16:39:19 +00:00
2023-02-19 15:05:22 +00:00
2023-02-23 11:13:22 +00:00
2023-02-21 16:39:19 +00:00
2023-02-25 21:56:21 +00:00
2023-01-25 01:40:12 +00:00
2023-02-07 21:21:18 +00:00
2023-02-03 00:15:21 +00:00
2023-02-19 15:05:22 +00:00
2023-02-12 18:08:21 +00:00
2023-02-23 11:06:19 +00:00
2023-02-23 10:38:21 +00:00
2023-01-15 14:57:13 +00:00
2023-01-15 14:57:13 +00:00
2023-02-07 17:10:21 +00:00
2023-02-02 18:52:17 +00:00
2022-12-15 21:32:17 +00:00
2023-02-13 08:47:21 +00:00
2023-02-15 23:37:17 +00:00
2023-02-18 15:09:18 +00:00
2023-02-23 11:13:22 +00:00
2023-02-07 17:10:21 +00:00
2023-02-13 18:34:17 +00:00
2023-02-21 16:39:19 +00:00
2023-02-24 01:23:20 +00:00
2023-02-24 01:23:20 +00:00
2022-12-09 11:54:13 +00:00
2023-02-21 16:39:19 +00:00
2023-02-23 10:38:21 +00:00
2022-12-07 21:19:19 +00:00
2023-02-16 00:04:21 +00:00
2023-02-15 22:56:20 +00:00
2023-02-07 12:49:17 +00:00
2023-02-12 18:08:21 +00:00
2023-02-21 16:39:19 +00:00
2023-02-07 14:35:23 +00:00
2023-01-19 07:34:14 +00:00
2023-02-21 21:04:17 +00:00
2022-12-13 12:26:15 +00:00
2023-02-07 21:21:18 +00:00
2023-02-22 20:49:20 +00:00
2022-12-15 11:03:11 +00:00
2023-02-21 16:39:19 +00:00
2023-02-23 21:34:19 +00:00
2023-01-23 16:35:12 +00:00
2023-02-14 15:46:18 +00:00
2022-12-22 11:08:19 +00:00
2023-02-19 15:05:22 +00:00
2023-02-22 16:00:21 +00:00
2023-02-03 00:15:21 +00:00
2023-02-23 11:06:19 +00:00
2023-02-23 10:38:21 +00:00
2023-02-26 15:19:21 +00:00
2023-02-23 11:06:19 +00:00