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

WordPress Trac noreply at wordpress.org
Sat Feb 4 19:27:47 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
---------------------------------------------+-----------------------------

Comment (by pbiron):

 == Test Report ==

 This testing validates the PR commits for #57375 & #57557 are working as
 expected.

 === Environment ===

 OS: Windows 11 Pro for Workstations
 Web Server: apache 2.4.53
 PHP: 7.4.29
 WordPress: 6.1.1 & 6.2-alpha-55222 (includes the latest PR commits for
 #57375 & #57557)
 Browser: Chrome 109.0.5414.120
 Active Plugins: Gravity Forms

 === Actual Results ===

 ✅ Plugins updated successfully:

 Akismet Anti-Spam
 Gravity Forms
 Hello Dolly
 Jetpack
 MailPoet
 WooCommerce
 WP Forms Lite
 Yoast SEO

 ✅ No PHP errors/warnings/notices were logged during updates.
 ✅ Plugin file/directory counts matched those of direct installation via
 WP-CLI.
 ✅ After update, plugins could be activated successfully with no errors
 logged.

 == Timing Test ==

 I ran bulk upgrades of the 8 plugins listed above. Here are the times
 (average of 5 trials each):

 6.1.1: 1m 27s
 6.2-alpha-55222: 1m 5s (25% faster)

 Note: these times do NOT include the time to download the update packages
 (I'm on a slow network connection, so that download time would be out-of-
 whack compared to "normal" users)

 == Additional Info ==

 I also did a number of tests from `wp-admin/plugins.php` (tho, didn't
 gather timing info on those tests).  ✅ Plugins updated successfully.

 I also did a number of tests using the FTPext and ftpsockets filesytems
 (with FileZilla Server Windows 1.6.6).  However, because of problems with
 the FTP server setup I was getting intermittent errors while unzipping the
 larger packages (mostly Jetpack and Woo).  I'm confident that the changes
 in `6.2-alpha-55222` are working correctly with those filesystems, but
 can't provide reliable timing info because of the intermittent errors.

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


More information about the wp-trac mailing list