[wp-trac] [WordPress Trac] #51857: Add rollback for failed plugin/theme updates
WordPress Trac
noreply at wordpress.org
Wed Dec 23 21:29:33 UTC 2020
#51857: Add rollback for failed plugin/theme updates
-------------------------------------------------+-------------------------
Reporter: pbiron | Owner: pbiron
Type: enhancement | Status: assigned
Priority: normal | Milestone: 5.7
Component: Upgrade/Install | Version:
Severity: normal | Resolution:
Keywords: has-patch dev-feedback needs- | Focuses:
testing early |
-------------------------------------------------+-------------------------
Comment (by TimothyBlynJacobs):
I'm not sure if zipping a copy is the right approach here. In my
experience, most sites that have issues with a partial update failure ( ie
some files are not copied resulting in a crash ) are due to resources
timing out during the upgrade process. By taking a zip, this will
significantly increase the amount of processing that needs to be done
during the upgrade process and thus may ''increase'' the likelihood of
failed updates. Further, since this is a fatal error issue, `copy_dir`
won't return a result and the rollback code won't execute in that case.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51857#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list