[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 23:09:06 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:
------------------------------------------------+--------------------------

Comment (by jnylen0):

 > I disagree that discarding the return value is a viable option here,
 it's not.

 Can you elaborate, please?  There are no other possible return paths from
 `wp_update_comment`.

 I really don't care how this is fixed, but it's a pretty nasty bug in the
 API and needs to go in 4.7.

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


More information about the wp-trac mailing list