You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add core release command(s) to fetch available releases through the .org API #108
It would be useful to be able to easily query the available releases of WordPress core through the .org API and also get the download URLs for a given update.
changed the title [-]Add `core release list` and `core release get` commands[/-][+]Add `core release` command(s) to fetch available releases through the .org API[/+]on Apr 11, 2019
It doesn't seem to be possible to query for arbitrary patch version through the WordPress.org API. Am I missing something, like an extra query argument or a different endpoint?
Also, the locale query for the API argument behave in an unexpected way as well. It does only produce a different result for the first (i.e. the "latest") release, all others seem to still point to en_US downloads...
Also, the locale query for the API argument behave in an unexpected way as well. It does only produce a different result for the first (i.e. the "latest") release, all others seem to still point to en_US downloads...
Activity
[-]Add `core release list` and `core release get` commands[/-][+]Add `core release` command(s) to fetch available releases through the .org API[/+]schlessera commentedon Apr 11, 2019
It doesn't seem to be possible to query for arbitrary patch version through the WordPress.org API. Am I missing something, like an extra query argument or a different endpoint?
schlessera commentedon Apr 11, 2019
Also, the
localequery for the API argument behave in an unexpected way as well. It does only produce a different result for the first (i.e. the "latest") release, all others seem to still point toen_USdownloads...swissspidy commentedon Apr 11, 2019
Maybe @ocean90 knows more here?
schlessera commentedon Apr 11, 2019
Doesn't he always do?
ocean90 commentedon Apr 11, 2019
Can you tell me what endoints you are trying? What's the request looking like? To retrieve all available versions you could use https://api.wordpress.org/core/stable-check/1.0/.
Add `core release` command
swissspidy commentedon Apr 11, 2019
The current code uses
https://api.wordpress.org/core/version-check/1.7/it seems.schlessera commentedon Apr 11, 2019
Yes, indeed, I'm using the
version-checkendpoint right now. If I have a specific version fromstable-checkendpoint, can I:version-check/some other endpoint with similar information?schlessera commentedon Apr 11, 2019
The call to the
stable-checkis really slow and often times out. Is that endpoint not being cached?schlessera commentedon Oct 15, 2019
@ocean90 Do you know whether there might be a caching issue with
stable-check^^^?ocean90 commentedon Oct 17, 2019
There's no caching for that endpoint.
schlessera commentedon Oct 17, 2019
Shouldn't that be changed, then? It seems slow and unreliable.
schlessera commentedon Jan 11, 2022
@ocean90 Is there any update on this regarding the missing caching on the
stable-checkendpoint?