From 11d220ba2fef44e0551ecc2b9f84183c5adc6fff Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 21 Jan 2005 02:55:35 +0000 Subject: [PATCH] Used the filtered vars, not the unfiltered ones. Bug 641. git-svn-id: https://develop.svn.wordpress.org/trunk@2112 602fd350-edb4-49c9-b593-d223f7449a82 --- 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;