[wp-trac] [WordPress Trac] #20615: Unknown error when running plugins_api() with invalid slug
WordPress Trac
noreply at wordpress.org
Fri Aug 23 01:12:48 UTC 2013
#20615: Unknown error when running plugins_api() with invalid slug
--------------------------------+------------------------
Reporter: scribu | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: WordPress.org site | Version:
Severity: normal | Resolution: duplicate
Keywords: |
--------------------------------+------------------------
Comment (by SergeyBiryukov):
Replying to [comment:4 dd32]:
> But it would be nice for the API to return more than just "NULL".
Yes, looks like currently there's no reliable way to detect if the request
failed due to an invalid slug and not a general connection error. We would
just have to assume that null means an invalid slug.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20615#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list