[wp-trac] [WordPress Trac] #38494: WP REST API: Stale Post Status on DELETE of Post

WordPress Trac noreply at wordpress.org
Wed Oct 26 20:45:54 UTC 2016


#38494: WP REST API: Stale Post Status on DELETE of Post
----------------------------+------------------------------
 Reporter:  timmydcrawford  |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  REST API        |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+------------------------------

Comment (by adamsilverstein):

 Replying to [comment:1 rmccue]:
 > This was intentional, as it allows you to restore the post to its
 previous state by sending that data back as a PUT. It is a tad confusing
 though.
 >

 This doesn't make sense to me. The return should reflect the new state of
 the object. If I want to change the status back to published, I would set
 that before issuing a new PUT.

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


More information about the wp-trac mailing list