#57907 closed defect (bug) (fixed)
Fix WP_Error in copy_dir()
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 6.3 | Priority: | normal |
Severity: | normal | Version: | 5.7 |
Component: | Filesystem API | Keywords: | has-patch commit |
Focuses: | Cc: |
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.
2 years ago
#1
#3
@
2 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.
#6
@
2 years ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
In 55538:
@SergeyBiryukov commented on PR #4222:
2 years ago
#7
Thanks for the PR! Merged in r55538.
Note: See
TracTickets for help on using
tickets.
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