[wp-trac] [WordPress Trac] #39466: Get list of post API request missing status
WordPress Trac
noreply at wordpress.org
Thu Jan 5 06:37:45 UTC 2017
#39466: Get list of post API request missing status
------------------------------------------+-----------------------
Reporter: gnanasekaran | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.7.2
Component: REST API | Version: 4.6.1
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses: rest-api
------------------------------------------+-----------------------
Comment (by rmccue):
Replying to [comment:2 jnylen0]:
> I think it's a bit silly not to include `status`: we support querying
for a post status unauthenticated, even if just for the default status of
`publish` ([https://core.trac.wordpress.org/browser/tags/4.7/src/wp-
includes/rest-api/endpoints/class-wp-rest-posts-
controller.php?marks=2177,2180#L2160 ref]) or `inherit` for attachments
([https://core.trac.wordpress.org/browser/tags/4.7/src/wp-includes/rest-
api/endpoints/class-wp-rest-attachments-controller.php?marks=636#L626
ref]).
FWIW, this has been the case since [https://github.com/WP-API/WP-
API/commit/69f617d749e4f165b9e31c1c042eec45ade3e41f this commit]. Not sure
why we made the decision then, but it does somewhat make sense to add this
to the `view` context, if only to distinguish between `publish` and
`inherit` (although `inherit` isn't actually allowed in WP on anything
except `attachment`, to my knowledge).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39466#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list