[wp-trac] [WordPress Trac] #12431: Record comment meta in wp_new_comment

WordPress Trac noreply at wordpress.org
Fri Sep 25 04:40:32 UTC 2015


#12431: Record comment meta in wp_new_comment
-------------------------+---------------------------
 Reporter:  tellyworth   |       Owner:  boonebgorges
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  4.4
Component:  Comments     |     Version:  3.0
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |     Focuses:
-------------------------+---------------------------
Changes (by boonebgorges):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"34533"]:
 {{{
 #!CommitTicketReference repository="" revision="34533"
 Allow metadata to be attached to comment at time of creation.

 The new `$comment_meta` parameter of `wp_insert_comment()` allows an array
 of
 key/value pairs to be passed when creating a comment. These pairs are then
 stored as commentmeta when the comment has been created.

 Props tellyworth, wonderboymusic.
 Fixes #12431.
 }}}

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


More information about the wp-trac mailing list