[wp-trac] [WordPress Trac] #46581: $skip_list in copy_dir function is not working as it should
WordPress Trac
noreply at wordpress.org
Sat Oct 5 02:15:24 UTC 2019
#46581: $skip_list in copy_dir function is not working as it should
-------------------------------------------------+-------------------------
Reporter: codex-m | Owner:
| SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Future
| Release
Component: Filesystem API | Version: 3.7
Severity: major | Resolution: fixed
Keywords: has-patch dev-feedback needs-unit- | Focuses:
tests needs-refresh |
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"46400" 46400]:
{{{
#!CommitTicketReference repository="" revision="46400"
Filesystem API: Use strict type check in the `in_array()` call for the
`$skip_list` parameter in `copy_dir()` and `_copy_dir()`.
This ensures that parent folders with a numeric name are not accidentally
skipped when only a subfolder is intended to be skipped.
Props codex-m.
Fixes #46581.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46581#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list