diff --git a/wp-includes/functions-post.php b/wp-includes/functions-post.php index 665fce6af0..66dba1a5df 100644 --- a/wp-includes/functions-post.php +++ b/wp-includes/functions-post.php @@ -389,6 +389,7 @@ function user_can_edit_user($user_id, $other_user) { function wp_new_comment( $commentdata ) { global $wpdb; + $commentdata = apply_filters('preprocess_comment', $commentdata); extract($commentdata); $comment_post_ID = (int) $comment_post_ID; @@ -486,4 +487,4 @@ function add_ping($post_id, $uri) { // Add a URI to those already pung return $wpdb->query("UPDATE $wpdb->posts SET pinged = '$new' WHERE ID = $post_id"); } -?> \ No newline at end of file +?>