[wp-trac] [WordPress Trac] #34696: Add $args['hook_extra'] to upgrader_source_selection filter

WordPress Trac noreply at wordpress.org
Mon Nov 16 01:38:12 UTC 2015


#34696: Add $args['hook_extra'] to upgrader_source_selection filter
-----------------------------+-----------------------------
 Reporter:  afragen          |      Owner:
     Type:  enhancement      |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Upgrade/Install  |    Version:  trunk
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34696>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list