Make WordPress Core

Changes between Initial Version and Version 2 of Ticket #39466


Ignore:
Timestamp:
01/04/2017 05:02:43 PM (7 years ago)
Author:
jnylen0
Comment:

We do only show the status in context=edit (ref).

This has been reported at least one other time in testing. 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 (ref) or inherit for attachments (ref).

Another status-related issue: It's not possible to query posts with the inherit status unauthenticated. But, it looks like they may show up in /wp/v2/posts if read permission is otherwise allowed. Needs some testing.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #39466

    • Property Keywords needs-patch needs-unit-tests added
    • Property Milestone changed from Awaiting Review to 4.7.2
  • Ticket #39466 – Description

    initial v2  
    1 when send "get post" request, status ($data['status']) overwrite by default. I did not get "status" in response.
     1when send "get posts" request, status (`$data['status']`) is missing by default. I did not get "status" in response.
    22
    33For below request