#34696 closed enhancement (fixed)
Add $args['hook_extra'] to upgrader_source_selection filter
Reported by: | afragen | Owned by: | dd32 |
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | normal | Version: | 4.4 |
Component: | Upgrade/Install | Keywords: | has-patch |
Focuses: | Cc: |
Description
After much discussion with @dd32, regarding the upgrader_source_selection
filter it was determined that adding an additional parameter, $args['hook_extra']
, would make the filter more useful and result in less overhead than other possible solutions, see #34617 and #34661.
Adding this parameter allows the developer to avoid the use of globals, particularly $plugins
or $themes
, when trying to determine what is being updated.
As an extra parameter, this should result in no breakage as the additional parameter would be ignored under current use conditions.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
In 35642: