WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 2 years ago

#42448 new enhancement

Add 'upgrader_pre_unpack' hook

Reported by: jdgrimes Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Upgrade/Install Keywords: has-patch
Focuses: Cc:
PR Number:

Description

The WP_Upgrader class provides several hooks that can be used to modify the upgrader process. There is an 'upgrader_pre_download' hook, for example. But there is no hook that fires after download but before the package is unpacked. It would be nice to add such a hook, which for example could be used to verify a package's signature, or override the unpacking code entirely.

Attachments (1)

42448.diff (1.2 KB) - added by NathanAtmoz 2 years ago.
Introduce upgrader_pre_unpack filter prior to unpacking the package.

Download all attachments as: .zip

Change History (2)

@NathanAtmoz
2 years ago

Introduce upgrader_pre_unpack filter prior to unpacking the package.

#1 @NathanAtmoz
2 years ago

  • Keywords has-patch added
Note: See TracTickets for help on using tickets.