Ticket #34141: 34141.diff
File 34141.diff, 1.2 KB (added by , 9 years ago) |
---|
-
class-wp-xmlrpc-server.php
6262 6262 $this->escape($comment_content); 6263 6263 $comment_type = 'pingback'; 6264 6264 6265 $commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_url', 'comment_author_email', 'comment_content', 'comment_type' );6265 $commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_url', 'comment_author_email', 'comment_content', 'comment_type', 'linea' ); 6266 6266 6267 6267 $comment_ID = wp_new_comment($commentdata); 6268 6268 -
comment-functions.php
1635 1635 * 1636 1636 * @param int $comment_ID The comment ID. 1637 1637 * @param int $comment_approved 1 (true) if the comment is approved, 0 (false) if not. 1638 * @param array $commentdata Pass entire commentdata array 1638 1639 */ 1639 do_action( 'comment_post', $comment_ID, $commentdata['comment_approved'] );1640 do_action( 'comment_post', $comment_ID, $commentdata['comment_approved'], $commentdata ); 1640 1641 1641 1642 return $comment_ID; 1642 1643 }