[wp-trac] [WordPress Trac] #25314: A way for plugins/themes outside of the wp repository to provide an update API URL
WordPress Trac
noreply at wordpress.org
Fri May 2 10:26:36 UTC 2014
#25314: A way for plugins/themes outside of the wp repository to provide an update
API URL
-----------------------------+------------------------------
Reporter: farinspace | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Upgrade/Install | Version: 3.6.1
Severity: normal | Resolution:
Keywords: | Focuses:
-----------------------------+------------------------------
Comment (by johnbillion):
Replying to [comment:4 alexander.rohmann]:
> However, there isn't a way from preventing the wordpress.org API from
being polled every time the update transient is repopulated here:
>
> https://core.trac.wordpress.org/browser/branches/3.9/src/wp-
includes/update.php#L285
> `$request = wp_remote_post( $url, $args );`
This is possible, but it's not very elegant. You need to hook into the
`http_request_args` and filter out your plugin from the API request. Take
a look at my [https://github.com/cftp/external-update-api/blob/master
/external-update-api/euapi.php#L21 External Update API plugin].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/25314#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list