Making WordPress.org

Opened 8 years ago

Closed 8 years ago

#2759 closed defect (bug) (fixed)

Response format on https://api.wordpress.org/ has suddenly changed today

Reported by: wpdesk's profile wpdesk Owned by:
Milestone: Priority: normal
Component: API Keywords:
Cc:

Description

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

Change History (1)

#1 @dd32
8 years ago

  • Resolution set to fixed
  • Status changed from new to closed

Should be fixed now (r13080-dotorg - Specifically state the default format of /plugins/info is php, and not json)

Note: See TracTickets for help on using tickets.