Add preprocess_comment filter to enable filtering all comment data in one go. Patch from MooKitty.

git-svn-id: http://svn.automattic.com/wordpress/trunk@2048 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rboren 2005-01-05 21:11:42 +00:00
parent 8de73e88b2
commit 5af5da1547

View File

@ -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");
}
?>
?>