[wp-trac] [WordPress Trac] #25611: Add filter to wp_update_plugins() to allow third-party updaters

WordPress Trac noreply at wordpress.org
Wed Oct 16 14:15:26 UTC 2013


#25611: Add filter to wp_update_plugins() to allow third-party updaters
-----------------------------+------------------------------
 Reporter:  rmccue           |       Owner:
     Type:  enhancement      |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Upgrade/Install  |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |
-----------------------------+------------------------------
Description changed by rmccue:

Old description:

> At the moment, most third party updaters use
> `pre_set_site_transient_update_plugins` to add extra update data.
> Unfortunately this method is prone to being a bit heavy handed, as
> `update_plugins` is updated in other places, such as when it has the
> expiration bumped just before the actual request. Custom updaters can't
> really hook into this correctly without doing some stupid tricks.

New description:

 At the moment, most third party updaters use
 `pre_set_site_transient_update_plugins` to add extra update data.
 Unfortunately this method is prone to being a bit heavy handed, as
 `update_plugins` is updated in other places, such as when it has the
 expiration bumped just before the actual request. Custom updaters can't
 really hook into this correctly without doing some stupid tricks.

 Attached patch adds `core_version_check_response`,
 `plugins_update_check_response`, and `themes_update_check_response`
 filters (not sure why you'd use the core one, but it's there for
 consistency).

--

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25611#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list