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

WordPress Trac noreply at wordpress.org
Fri Nov 18 16:21:28 UTC 2016


#38817: REST API: Store the user_agent by default in the comments API
---------------------------------------------+--------------------------
 Reporter:  dd32                             |       Owner:  rachelbaker
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  4.7
Component:  Comments                         |     Version:
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:  rest-api
---------------------------------------------+--------------------------
Changes (by rachelbaker):

 * owner:   => rachelbaker
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"39287"]:
 {{{
 #!CommitTicketReference repository="" revision="39287"
 REST API: On comment create, fallback to the `user_agent` header value.

 If a user-agent is not explicitly provided in the `author_user_agent`
 parameter, fallback to the `user_agent` value in the request header.

 Props dd32, jnylen0, rachelbaker.
 Fixes #38817.
 }}}

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


More information about the wp-trac mailing list