[wp-trac] [WordPress Trac] #64398: `pre_unzip_file` and `unzip_file` filters in `_unzip_file_pclzip()` do not function as documented
WordPress Trac
noreply at wordpress.org
Thu Dec 11 02:24:30 UTC 2025
#64398: `pre_unzip_file` and `unzip_file` filters in `_unzip_file_pclzip()` do not
function as documented
----------------------------+-----------------------------
Reporter: sanchothefat | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Filesystem API | Version: trunk
Severity: normal | Keywords:
Focuses: |
----------------------------+-----------------------------
The filters in `_unzip_file_pclzip()` have a bug, caused by the use of the
variable name `$file` in 2 foreach loops within the function that
overwrite the original argument passed to the function.
[source:/trunk/src/wp-admin/includes/file.php#L1963]
[source:/trunk/src/wp-admin/includes/file.php#L1990]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64398>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list