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

WordPress Trac noreply at wordpress.org
Tue Nov 16 22:18:46 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 needs-testing has-patch                  |
-------------------------------------------------+-------------------------

Comment (by SergeyBiryukov):

 In [changeset:"52192" 52192]:
 {{{
 #!CommitTicketReference repository="" revision="52192"
 Upgrade/Install: Correct the weekly cron event for clearing the `temp-
 backup` directory:

 * Make sure the `wp_delete_temp_updater_backups` event has an action
 associated with it when it runs.
 * Check if the cron event already exists before scheduling it, to avoid
 scheduling duplicate events.
 * Move the code for clearing the `temp-backup` directory to a standalone
 function.

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

 Props pbiron, johnbillion.
 See #51857.
 }}}

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


More information about the wp-trac mailing list