From 8add0e48f557e3a2477a0f56457cb3743709c376 Mon Sep 17 00:00:00 2001 From: rboren Date: Fri, 21 Jan 2005 02:55:35 +0000 Subject: [PATCH] Used the filtered vars, not the unfiltered ones. Bug 641. git-svn-id: http://svn.automattic.com/wordpress/trunk@2112 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions-post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions-post.php b/wp-includes/functions-post.php index 07cf28dfef..ede6285a8d 100644 --- a/wp-includes/functions-post.php +++ b/wp-includes/functions-post.php @@ -465,7 +465,7 @@ function wp_new_comment( $commentdata, $spam = false ) { $result = $wpdb->query("INSERT INTO $wpdb->comments (comment_post_ID, comment_author, comment_author_email, comment_author_url, comment_author_IP, comment_date, comment_date_gmt, comment_content, comment_approved, comment_agent, comment_type) VALUES - ('$comment_post_ID', '$comment_author', '$comment_author_email', '$comment_author_url', '$user_ip', '$now', '$now_gmt', '$comment_content', '$approved', '$user_agent', '$comment_type') + ('$comment_post_ID', '$author', '$email', '$url', '$user_ip', '$now', '$now_gmt', '$comment', '$approved', '$user_agent', '$comment_type') "); $comment_id = $wpdb->insert_id;