Changes between Initial Version and Version 3 of Ticket #52381
- Timestamp:
- 01/27/2021 04:17:38 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #52381
- Property Owner set to afragen
-
Property
Status
changed from
new
toassigned
-
Property
Summary
changed from
Add filter for results of `copy_dir()` in WP_Upgrader
toAdd filter for results of `WP_Upgrader::install_package()`
-
Property
Milestone
changed from
Awaiting Review
to5.7
-
Ticket #52381 – Description
initial v3 1 Adding a filter to the result of ` copy_dir()` in `WP_Upgrader::install_package()` allows for the capture and usage of error data resulting from the `copy_dir()` function.1 Adding a filter to the result of `install_package()` in `WP_Upgrader::install_package()` allows for the capture and usage of error data resulting from the `install_package()` function. 2 2 3 The proposed filter additionally allows for a potential plugin/theme rollback in the event of an update failure due to `copy_dir()` . A rollback feature for plugin/theme update failures was originally proposed in #51857.3 The proposed filter additionally allows for a potential plugin/theme rollback in the event of an update failure due to `copy_dir()`, but more generally a failure during `install_package()`. A rollback feature for plugin/theme update failures was originally proposed in #51857. 4 4 5 5 A feature plugin [https://github.com/afragen/rollback-update-failure Rollback Update Failure] is available for testing utilizing this filter.