[wp-trac] [WordPress Trac] #38720: REST API: Updating a comment without sending content is valid, but unsupported

WordPress Trac noreply at wordpress.org
Tue Nov 8 23:03:06 UTC 2016


#38720: REST API: Updating a comment without sending content is valid, but
unsupported
--------------------------+-----------------------------
 Reporter:  jnylen0       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  REST API      |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 The REST API currently prohibits updating a comment unless the content is
 specified along with the update.  Originally introduced
 [https://github.com/WP-API/WP-
 API/commit/6282db4cb06e7e825d7767b837d008f9cd33a012 here] (and then
 shuffled around a bit afterwards).

 This doesn't make sense with the rest of the API: it's possible (and
 common) to update only a couple of attributes at a time for a post.

 Example use cases:

 - Fixing a typo in the author name
 - Resetting the parent of a comment if it was placed incorrectly on a p2

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38720>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list