[wp-trac] [WordPress Trac] #52381: Add filter for results of `WP_Upgrader::install_package()`

WordPress Trac noreply at wordpress.org
Tue Feb 2 17:34:05 UTC 2021


#52381: Add filter for results of `WP_Upgrader::install_package()`
------------------------------------+----------------------
 Reporter:  afragen                 |       Owner:  afragen
     Type:  enhancement             |      Status:  closed
 Priority:  normal                  |   Milestone:  5.7
Component:  Upgrade/Install         |     Version:
 Severity:  normal                  |  Resolution:  fixed
 Keywords:  has-patch early commit  |     Focuses:
------------------------------------+----------------------
Changes (by SergeyBiryukov):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"50151" 50151]:

 Upgrade/Install: Introduce a filter for the result of
 `WP_Upgrader::install_package()`.

 This allows for the capture and usage of error data from the method, to
 facilitate a potential plugin/theme rollback in the event of an update
 failure.

 Props afragen, dd32.
 Fixes #52381.

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


More information about the wp-trac mailing list