[wp-trac] [WordPress Trac] #51857: Add rollback for failed plugin/theme updates

WordPress Trac noreply at wordpress.org
Sat Oct 9 03:37:56 UTC 2021


#51857: Add rollback for failed plugin/theme updates
-------------------------------------------------+-------------------------
 Reporter:  pbiron                               |       Owner:  pbiron
     Type:  enhancement                          |      Status:  reopened
 Priority:  normal                               |   Milestone:  5.9
Component:  Upgrade/Install                      |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  early has-testing-info needs-unit-   |     Focuses:
  tests has-patch needs-testing                  |
-------------------------------------------------+-------------------------

Comment (by SergeyBiryukov):

 In [changeset:"51899" 51899]:
 {{{
 #!CommitTicketReference repository="" revision="51899"
 Upgrade/Install: Introduce a `move_dir()` function.

 This replaces the `copy_dir()` usage in `WP_Upgrader::install_package()`
 and aims to avoid PHP timeout issues when installing or updating large
 plugins on slower systems like Vagrant or the WP Docker test environment.

 The new function attempts a native PHP `rename()` function first and falls
 back to the previous `copy_dir()`.

 Follow-up to [51815], [51898].

 Props afragen, aristath, peterwilsoncc, galbaras, noisysocks, pbiron.
 Fixes #54166. See #51857.
 }}}

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


More information about the wp-trac mailing list