[wp-trac] [WordPress Trac] #38425: REST API: Allow comments to be created setting the user_agent parameter

WordPress Trac noreply at wordpress.org
Fri Oct 21 18:27:20 UTC 2016


#38425: REST API: Allow comments to be created setting the user_agent parameter
---------------------------------------------+--------------------------
 Reporter:  rachelbaker                      |       Owner:  rachelbaker
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  4.7
Component:  REST API                         |     Version:
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+--------------------------
Changes (by rachelbaker):

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


Comment:

 In [changeset:"38864"]:
 {{{
 #!CommitTicketReference repository="" revision="38864"
 REST API: Allow comments to be created setting the user_agent parameter.

 As of WordPress 4.3 the `wp_new_comment()` function has been updated to
 allow the comment_agent value to be set when a comment is created. The
 comments API endpoint now allows the comment author's user agent to be set
 when creating a comment.
 Also, the `readonly` property on the `author_user_agent` parameter in the
 schema was removed.

 Props rabmalin for the initial patch.
 Fixes #38425.
 }}}

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


More information about the wp-trac mailing list