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

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


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

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


Comment:

 In [changeset:"55223" 55223]:
 {{{
 #!CommitTicketReference repository="" revision="55223"
 Filesystem API: Simplify two conditionals in `move_dir()`.

 This updates the check whether the destination directory already exists to
 only call `$wp_filesystem->exists()` once.

 Follow-up to [55204], [55219], [55220].

 Props azaozz, afragen, SergeyBiryukov.
 Fixes #57375.
 }}}

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


More information about the wp-trac mailing list