#2338 closed defect (bug) (fixed)
API regression on return value for missing plugin
Reported by: | tellyworth | Owned by: | dd32 |
---|---|---|---|
Milestone: | Plugin Directory v3.0 | Priority: | normal |
Component: | Plugin Directory | Keywords: | |
Cc: |
Description
There's a mismatch between the old API and new when fetching info for a plugin that doesn't exist:
https://api.wordpress.org/plugins/info/1.0/user-switching-not-a-plugin.json
null
vs
https://api.wordpress.org/plugins/info/1.0/user-switching-not-a-plugin.json?wp=1
{"error":"Plugin not found.","contributors":[]
}
This trips up some clients. See https://wordpress.slack.com/archives/meta/p1482353516001438.
Change History (2)
Note: See
TracTickets for help on using
tickets.
In 4566: