[wp-trac] [WordPress Trac] #38817: REST API: Store the user_agent by default in the comments API

WordPress Trac noreply at wordpress.org
Wed Nov 16 12:57:02 UTC 2016


#38817: REST API: Store the user_agent by default in the comments API
--------------------------+-----------------------
 Reporter:  dd32          |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  4.7
Component:  Comments      |    Version:
 Severity:  normal        |   Keywords:  has-patch
  Focuses:  rest-api      |
--------------------------+-----------------------
 The comments API currently doesn't store the `user_agent` by default,
 unless the client specifies it.

 As the user_agent field is a user-controllable field, I see no issue with
 allowing it to be set through the REST API parameters, however believe
 that it should default to `$_SERVER['HTTP_USER_AGENT']` when not specified
 by the client.

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


More information about the wp-trac mailing list