[wp-trac] [WordPress Trac] #35276: Allow `comment_author_IP` and `comment_agent` keys to be updated via `wp_update_comment()`

WordPress Trac noreply at wordpress.org
Thu Dec 31 19:55:01 UTC 2015


#35276: Allow `comment_author_IP` and `comment_agent` keys to be updated via
`wp_update_comment()`
--------------------------+-----------------------------
 Reporter:  rachelbaker   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Comments      |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Comments created via `wp_insert_comment()` can pass in values for the
 `comment_author_IP` and `comment_agent` keys, but those keys cannot be
 updated via `wp_update_comment()`.

 '''Use case:'''
 Sally uses a REST API endpoint to create a comment. When Sally receives
 the successful response with her new Comment object from the REST API,
 Sally realizes she made a mistake.  She has typos in the values for:
 `comment_author_IP` and `comment_agent`.  Sally tries to send a PUT
 request to correct her typos, and receives a mean error message saying
 those properties are not able to be updated.  Sally is sad.

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


More information about the wp-trac mailing list