[wp-trac] [WordPress Trac] #38700: REST API: Cannot send an empty or no-op comment update

WordPress Trac noreply at wordpress.org
Tue Nov 8 06:12:17 UTC 2016


#38700: REST API: Cannot send an empty or no-op comment update
------------------------------------------------+--------------------------
 Reporter:  jnylen0                             |       Owner:  rmccue
     Type:  defect (bug)                        |      Status:  assigned
 Priority:  normal                              |   Milestone:  Future
Component:  REST API                            |  Release
 Severity:  normal                              |     Version:  trunk
 Keywords:  has-patch has-unit-tests 4.8-early  |  Resolution:
                                                |     Focuses:
------------------------------------------------+--------------------------
Changes (by rmccue):

 * keywords:  has-patch has-unit-tests => has-patch has-unit-tests 4.8-early
 * owner:   => rmccue
 * status:  new => assigned
 * milestone:  4.7 => Future Release


Comment:

 [https://wordpress.slack.com/archives/core-restapi/p1478585261001124
 Discussed on Slack], the better solution really is to add a `$wp_error`
 flag to `wp_update_comment` to match `wp_insert_post` (etc), which would
 return us a proper error instead. Since this is an edge case, and it's too
 late in the cycle to add this, punting to 4.8.

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


More information about the wp-trac mailing list