[wp-meta] [Making WordPress.org] #2759: Response format on https://api.wordpress.org/ has suddenly changed today
Making WordPress.org
noreply at wordpress.org
Thu Apr 20 12:23:23 UTC 2017
#2759: Response format on https://api.wordpress.org/ has suddenly changed today
--------------------+-----------------
Reporter: wpdesk | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: API | Keywords:
--------------------+-----------------
Yesterday the https://api.wordpress.org/plugins/info/1.0/slug endpoint was
responding with serialized body but today it's responding with json
response.
Example:
that should respond with serialized
https://api.wordpress.org/plugins/info/1.0/woocommerce
{"name":"WooCommerce","slug":"woocommerce","version":"3.0.3","author":"<a
href=\"https:\/\/woocommerce.com\">Automattic<\/a>","author_profile":"https:\/\/profiles.wordpress.org\/woothemes","contributors":
...
and that should respond with json:
https://api.wordpress.org/plugins/info/1.0/woocommerce.json
In this moment both requests are encoded as json.
On the other hand the rest of endpoints still behaves correctly.
The changed behavior for plugins/info endpoint breaks some wp-cli requests
like for example from plugin precache command
https://github.com/runcommand/precache
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/2759>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list