[wp-trac] [WordPress Trac] #57907: Fix WP_Error in copy_dir()

WordPress Trac noreply at wordpress.org
Sat Mar 11 05:45:35 UTC 2023


#57907: Fix WP_Error in copy_dir()
------------------------------+---------------------
 Reporter:  afragen           |       Owner:  (none)
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  6.3
Component:  Filesystem API    |     Version:  5.1.1
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:
------------------------------+---------------------
Changes (by costdev):

 * keywords:  has-patch => has-patch commit


Comment:

 [https://github.com/WordPress/wordpress-develop/pull/4222 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57907#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list