[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 Sep 13 17:25:52 UTC 2013


#25314: A way for plugins/themes outside of the wp repository to provide an update
API URL
-----------------------------+------------------------------
 Reporter:  farinspace       |       Owner:
     Type:  enhancement      |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Upgrade/Install  |     Version:  3.6.1
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+------------------------------
Description changed by SergeyBiryukov:

Old description:

> Plugins outside of the repository are able to provide an update api/url
> but only when they are activated (e.g. using the
> "pre_set_site_transient_update_plugins" filter), however if a plugin is
> not activated (deactivated), wordpress will always check the repository,
> any plugin of the same name would get its data returned, potentially
> overriding the existing external plugin.
>
> I am having this issue, because I chose to not put a "dummy plugin" in
> the repository (to save the namespace).
>
> Im proposing that an additional header name/value pair be added to plugin
> file headers to be able to override the default repository check ...
>
> http://codex.wordpress.org/File_Header
>
> /*
> Plugin Name: Example
> Plugin URI: http://example.org
> ...
> API URI: http://example.org/api/
> */
>
> this would be overridden here I believe:
>
> # wp-includes/update.php line 205
> $raw_response = wp_remote_post('http://api.wordpress.org/plugins/update-
> check/1.0/', $options);

New description:

 Plugins outside of the repository are able to provide an update api/url
 but only when they are activated (e.g. using the
 "pre_set_site_transient_update_plugins" filter), however if a plugin is
 not activated (deactivated), wordpress will always check the repository,
 any plugin of the same name would get its data returned, potentially
 overriding the existing external plugin.

 I am having this issue, because I chose to not put a "dummy plugin" in the
 repository (to save the namespace).

 Im proposing that an additional header name/value pair be added to plugin
 file headers to be able to override the default repository check ...

 http://codex.wordpress.org/File_Header
 {{{
 /*
 Plugin Name: Example
 Plugin URI: http://example.org
 ...
 API URI: http://example.org/api/
 */
 }}}
 this would be overridden here I believe:
 {{{
 # wp-includes/update.php line 205
 $raw_response = wp_remote_post('http://api.wordpress.org/plugins/update-
 check/1.0/', $options);
 }}}

--

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


More information about the wp-trac mailing list