[wp-gsoc] [Summer of Code] #344: /posts/0 returns the latest post
Summer of Code
noreply at wordpress.org
Tue Aug 6 08:22:50 UTC 2013
#344: /posts/0 returns the latest post
------------------------------+---------------------------
Reporter: rmccue | Type: defect
Status: new | Priority: major
Milestone: 2013 Final (1.0) | Component: JSON REST API
Keywords: |
------------------------------+---------------------------
The `getPost` endpoint is missing a check for the ID parameter before
calling `get_post()`, so passing in an ID of 0 will retrieve the latest
post rather than returning an error.
--
Ticket URL: <http://gsoc.trac.wordpress.org/ticket/344>
Summer of Code <http://gsoc.trac.wordpress.org>
My example project
More information about the wp-gsoc
mailing list