WordPress.org

Make WordPress Core

Changes between Initial Version and Version 3 of Ticket #52381


Ignore:
Timestamp:
01/27/2021 04:17:38 PM (3 months ago)
Author:
afragen
Comment:

Moved filter to more general upgrader_install_complete after the install_package() process.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #52381

    • Property Owner set to afragen
    • Property Status changed from new to assigned
    • Property Summary changed from Add filter for results of `copy_dir()` in WP_Upgrader to Add filter for results of `WP_Upgrader::install_package()`
    • Property Milestone changed from Awaiting Review to 5.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.
     1Adding 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.
    22
    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.
     3The 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.
    44
    55A feature plugin [https://github.com/afragen/rollback-update-failure Rollback Update Failure] is available for testing utilizing this filter.