Ticket #34141: 34141.2.diff
File 34141.2.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
1429 1429 * @param WP_Comment $comment Comment object. 1430 1430 */ 1431 1431 do_action( 'wp_insert_comment', $id, $comment ); 1432 1433 // If there is something extra in $commentdata save it as meta. 1434 $commentmeta = array_diff( $commentdata, $compacted ); 1435 foreach ( $commentmeta as $key => $value ) { 1436 update_comment_meta( $id, $key, $value, true ); 1437 } 1432 1438 1433 1439 wp_cache_set( 'last_changed', microtime(), 'comment' ); 1434 1440