WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #43316, comment 89


Ignore:
Timestamp:
06/20/2018 02:07:31 PM (3 years ago)
Author:
aduth
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #43316, comment 89

    initial v1  
    1 Adding to comment:76 , it is not immediately obvious what fields this endpoint is capable of receiving, and in fact it varies by post status / authorship.
     1Adding to comment:88 , it is not immediately obvious what fields this endpoint is capable of receiving, and in fact it varies by post status / authorship.
    22
    33For auto-drafts / drafts authored by the current user, the following fields are supported:
     
    2929This was determined in the use of `_wp_post_revision_fields` to intersect fields for `_wp_put_post_revision`.
    3030
    31 Given then the need to pass `status` with the payload as described in comment:76 , it is especially confusing since it is only respected for some, but not all requests (only those which are auto-draft/draft by current user).
     31Given then the need to pass `status` with the payload as described in comment:88 , it is especially confusing since it is only respected for some, but not all requests (only those which are auto-draft/draft by current user).