Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#25611 closed enhancement (duplicate)

Add filter to wp_update_plugins() to allow third-party updaters

Reported by: rmccue's profile rmccue Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Upgrade/Install Keywords: has-patch
Focuses: Cc:

Description (last modified by rmccue)

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).

Attachments (1)

25611.diff (920 bytes) - added by rmccue 11 years ago.
Add core_version_check_response, plugins_update_check_response, themes_update_check_response filters

Download all attachments as: .zip

Change History (5)

@rmccue
11 years ago

Add core_version_check_response, plugins_update_check_response, themes_update_check_response filters

#1 @rmccue
11 years ago

  • Description modified (diff)

#2 @johnbillion
11 years ago

  • Cc johnbillion added

#3 @johnbillion
11 years ago

It'd be nice to have a pre_ filter as well. Third-party updaters currently have to hook intohttp_request_args and check the request URL in order to filter out the plugins/themes that they don't want to send to api.wordpress.org for update checking.

#4 @dd32
11 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #22377.

Note: See TracTickets for help on using tickets.