[wp-trac] [WordPress Trac] #39466: Get list of post API request missing status

WordPress Trac noreply at wordpress.org
Thu Feb 9 22:08:37 UTC 2017


#39466: Get list of post API request missing status
-------------------------------------------------+-------------------------
 Reporter:  gnanasekaran                         |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  4.7.3
Component:  REST API                             |     Version:  4.6.1
 Severity:  normal                               |  Resolution:
 Keywords:  needs-patch needs-unit-tests good-   |     Focuses:  rest-api
  first-bug                                      |
-------------------------------------------------+-------------------------

Comment (by rachelbaker):

 @dhanendran I honestly don't remember the logic for moving `status` to the
 edit context.  Only one that comes to mind is that the status/visibility
 of a resource is rarely exposed publically.
 However, in v1 of the REST API we did expose `post_status` for all
 contexts: https://github.com/WP-API/WP-API/blob/master/lib/class-wp-json-
 posts.php#L556

 I do not have a strong opinion here one way or another.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39466#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list