[wp-trac] [WordPress Trac] #57375: Add move_dir() function

WordPress Trac noreply at wordpress.org
Sat Feb 4 02:35:43 UTC 2023


#57375: Add move_dir() function
---------------------------------------------+-----------------------------
 Reporter:  afragen                          |       Owner:  SergeyBiryukov
     Type:  enhancement                      |      Status:  reopened
 Priority:  normal                           |   Milestone:  6.2
Component:  Filesystem API                   |     Version:  trunk
 Severity:  normal                           |  Resolution:
 Keywords:  has-patch has-unit-tests commit  |     Focuses:  performance
---------------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 Thanks for the commits!

 Looking at [55219], should `$wp_filesystem->exists( $to )` be saved to a
 variable to avoid the second call?

 See [attachment:57375.diff] (also uses consistent formatting for
 `WP_Error` while we're at it).

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


More information about the wp-trac mailing list