[wp-meta] [Making WordPress.org] #2338: API regression on return value for missing plugin

Making WordPress.org noreply at wordpress.org
Wed Dec 21 22:11:02 UTC 2016


#2338: API regression on return value for missing plugin
------------------------------+-----------------------------------
 Reporter:  tellyworth        |      Owner:
     Type:  defect            |     Status:  new
 Priority:  normal            |  Milestone:  Plugin Directory v3.0
Component:  Plugin Directory  |   Keywords:
------------------------------+-----------------------------------
 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.

--
Ticket URL: <https://meta.trac.wordpress.org/ticket/2338>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list