[wp-trac] [WordPress Trac] #52381: Add filter for results of `WP_Upgrader::install_package()`
WordPress Trac
noreply at wordpress.org
Thu Jan 28 04:44:44 UTC 2021
#52381: Add filter for results of `WP_Upgrader::install_package()`
-----------------------------+-----------------------
Reporter: afragen | Owner: afragen
Type: enhancement | Status: assigned
Priority: normal | Milestone: 5.7
Component: Upgrade/Install | Version:
Severity: normal | Resolution:
Keywords: has-patch early | Focuses:
-----------------------------+-----------------------
Comment (by dd32):
Reviewing PR925, it took me quite some time to figure out exactly why it's
wanted/required/needed.
Philosophically I feel that `upgrader_pre_install` and
`upgrader_post_install` should've covered these, however the latter is
only run on a successful call to `install_package()`, and that's written
into a lot of existing code, so changing it's behaviour isn't really
possible.
Adding a filter, potentially marked as temporary for a feature plugin,
makes sense to me, but I'd probably just call it
`upgrader_install_package_result` instead.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52381#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list