From 785835599ee455a2ce37cbdb40eca40236e2c5d8 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 5 Jan 2005 21:11:42 +0000 Subject: [PATCH] Add preprocess_comment filter to enable filtering all comment data in one go. Patch from MooKitty. git-svn-id: https://develop.svn.wordpress.org/trunk@2048 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions-post.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 +?>