Make WordPress Core

Ticket #34141: 34141.diff

File 34141.diff, 1.2 KB (added by dshanske, 9 years ago)
  • class-wp-xmlrpc-server.php

     
    62626262                $this->escape($comment_content);
    62636263                $comment_type = 'pingback';
    62646264
    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' );
    62666266
    62676267                $comment_ID = wp_new_comment($commentdata);
    62686268
  • comment-functions.php

     
    16351635         *
    16361636         * @param int $comment_ID       The comment ID.
    16371637         * @param int $comment_approved 1 (true) if the comment is approved, 0 (false) if not.
     1638         * @param array $commentdata Pass entire commentdata array
    16381639         */
    1639         do_action( 'comment_post', $comment_ID, $commentdata['comment_approved'] );
     1640        do_action( 'comment_post', $comment_ID, $commentdata['comment_approved'], $commentdata );
    16401641
    16411642        return $comment_ID;
    16421643}