Colin Stewart
6558db1756
Filesystem API: Introduce filters for before/after unzipping archives.
...
This introduces the following new filters which wrap the process of unzipping an archive:
- `pre_unzip_file` - Filters archive unzipping to allow an override with a custom process.
- `unzip_file` - Filters the result of unzipping an archive.
Both filters pass the following:
- `string $file` - Full path and filename of ZIP archive.
- `string $to` - Full path on the filesystem to extract archive to.
- `string[] $needed_dirs` - A full list of required folders that need to be created.
- `float|false $required_space` - The space required to unzip the file and copy its contents, with a 10% buffer.
Props dfavor, azaozz, oglekler, afragen, costdev.
Fixes #37719 .
git-svn-id: https://develop.svn.wordpress.org/trunk@56689 602fd350-edb4-49c9-b593-d223f7449a82
2023-09-25 22:14:11 +00:00
..
2023-09-22 19:56:48 +00:00
2023-07-24 23:37:29 +00:00
2023-09-25 22:14:11 +00:00
2023-09-11 04:51:09 +00:00
2023-09-17 19:10:58 +00:00
2023-09-14 00:52:45 +00:00
2023-08-01 15:02:08 +00:00
2022-05-07 16:19:53 +00:00
2021-06-01 11:29:36 +00:00
2023-06-14 14:06:03 +00:00
2022-03-02 14:58:09 +00:00
2023-06-14 14:06:03 +00:00
2023-09-17 15:31:32 +00:00
2023-09-14 00:52:45 +00:00
2023-09-14 00:52:45 +00:00
2023-08-01 12:56:40 +00:00
2023-08-01 12:56:40 +00:00
2023-06-14 14:06:03 +00:00
2023-09-17 15:31:32 +00:00
2023-09-17 15:31:32 +00:00
2023-09-25 10:00:19 +00:00
2023-02-07 17:08:26 +00:00
2023-09-14 02:13:42 +00:00
2023-09-14 00:52:45 +00:00
2023-09-17 15:31:32 +00:00
2023-09-18 07:02:45 +00:00
2023-02-23 10:36:33 +00:00
2023-02-23 10:36:33 +00:00
2023-09-20 09:45:51 +00:00
2023-07-24 23:37:29 +00:00
2023-09-17 15:31:32 +00:00
2021-12-10 20:28:27 +00:00
2022-11-20 14:08:38 +00:00
2023-06-25 18:42:56 +00:00
2021-07-22 13:51:58 +00:00
2023-09-14 02:13:42 +00:00
2023-06-14 14:06:03 +00:00
2023-09-09 09:26:01 +00:00
2021-12-12 14:50:18 +00:00
2023-06-23 12:15:06 +00:00
2023-02-23 10:36:33 +00:00
2023-09-07 14:57:30 +00:00
2023-06-19 23:18:28 +00:00
2023-07-09 19:54:42 +00:00
2023-09-17 02:08:25 +00:00
2022-11-14 21:55:33 +00:00
2023-09-05 19:24:31 +00:00
2023-09-17 15:31:32 +00:00
2023-02-23 10:36:33 +00:00
2023-02-23 10:36:33 +00:00
2023-09-25 15:34:34 +00:00
2023-02-23 10:36:33 +00:00
2023-05-02 15:43:03 +00:00
2023-09-14 00:52:45 +00:00
2023-09-14 00:52:45 +00:00
2023-06-22 00:30:41 +00:00
2023-09-14 00:52:45 +00:00
2023-09-17 15:31:32 +00:00
2023-02-23 10:36:33 +00:00
2023-09-25 15:34:34 +00:00
2020-05-16 18:40:52 +00:00
2023-06-22 14:34:56 +00:00
2023-09-14 00:52:45 +00:00
2023-07-24 23:37:29 +00:00
2023-08-24 09:30:17 +00:00
2023-06-23 23:07:10 +00:00
2023-09-14 00:52:45 +00:00
2023-09-14 00:52:45 +00:00
2023-09-14 00:52:45 +00:00
2022-06-01 18:12:25 +00:00
2023-09-17 15:31:32 +00:00
2023-09-17 15:31:32 +00:00
2023-09-20 21:01:02 +00:00
2023-02-23 10:36:33 +00:00
2023-09-22 19:56:48 +00:00
2023-04-09 11:55:37 +00:00
2023-08-25 05:42:43 +00:00
2023-09-22 18:17:44 +00:00
2023-09-25 15:34:34 +00:00
2023-09-17 15:31:32 +00:00
2023-09-17 15:31:32 +00:00
2023-09-24 23:58:42 +00:00
2023-09-14 02:13:42 +00:00
2022-03-22 19:57:20 +00:00