WordPress.org

Making WordPress.org

Changeset 6422


Ignore:
Timestamp:
01/24/2018 07:36:47 AM (4 years ago)
Author:
dd32
Message:

Plugin Directory: API: Return a proper error message for api.wordpress.org/plugin/info/ when the plugin cannot be found.
WordPress itself expects the null response, and currently uses the info/1.0 endpoint which returns PHP, so we'll retain this carveout for it.

These URLs now return an error message:
https://api.wordpress.org/plugins/info/1.0/non-existant-plugin.json
https://api.wordpress.org/plugins/info/1.0/non-existant-plugin.xml
https://api.wordpress.org/plugins/info/1.1/?action=plugin_information&request[slug]=non-existant-plugin

Fixes #111.

File:
1 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.