#57907 closed defect (bug) (fixed)
Fix WP_Error in copy_dir()
| Reported by: | afragen | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.3 |
| Component: | Filesystem API | Version: | 5.7 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
Description
The WP_Error returned for ::dirlist() has an incorrect data argument. It should be based on the $from.
Change History (8)
This ticket was mentioned in PR #4222 on WordPress/wordpress-develop by @afragen.
4 years ago
#1
#3
@
4 years ago
- Keywords commit added
PR 4222 looks good to me. ::dirlist() is run on $from, so basename( $from ) is the correct thing to pass to the WP_Error object.
Marking for commit consideration.
@SergeyBiryukov commented on PR #4222:
4 years ago
#7
Thanks for the PR! Merged in r55538.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
The WP_Errror returned in copy_dir() for ::dirlist() seems to be incorrect. It should be $from not $to.
Trac ticket: https://core.trac.wordpress.org/ticket/57907