[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
Sat Dec 13 20:11:06 UTC 2025
#64398: `pre_unzip_file` and `unzip_file` filters in `_unzip_file_pclzip()` do not
function as documented
-----------------------------------------+--------------------------
Reporter: sanchothefat | Owner: westonruter
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 7.0
Component: Filesystem API | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch changes-requested | Focuses:
-----------------------------------------+--------------------------
Changes (by SergeyBiryukov):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"61374" 61374]:
{{{
#!CommitTicketReference repository="" revision="61374"
Filesystem API: Pass correct `$file` value to `pre_unzip_file` and
`unzip_file` filters.
This commit ensures that the original `$file` argument passed to the
function is not unintentionally overwritten by the use of the same
variable name in two `foreach` loops.
Follow-up to [56689].
Props sanchothefat, westonruter, mukesh27, SergeyBiryukov.
Fixes #64398.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64398#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list