[wp-trac] [WordPress Trac] #57907: Fix WP_Error in copy_dir()
WordPress Trac
noreply at wordpress.org
Sat Mar 11 11:33:09 UTC 2023
#57907: Fix WP_Error in copy_dir()
------------------------------+-----------------------------
Reporter: afragen | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.3
Component: Filesystem API | Version: 5.7
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses:
------------------------------+-----------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"55538" 55538]:
{{{
#!CommitTicketReference repository="" revision="55538"
Filesystem API: Return correct error data from `copy_dir()` if the
directory listing failed.
The `::dirlist()` method is run on the `$from` directory, so `basename(
$from )` is the correct thing to pass to the `WP_Error` object.
Follow-up to [50149].
Props afragen, costdev, pravinparmar2404.
Fixes #57907.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57907#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list