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
This commit is contained in:
parent
7348f9a66b
commit
8add0e48f5
|
@ -465,7 +465,7 @@ function wp_new_comment( $commentdata, $spam = false ) {
|
||||||
$result = $wpdb->query("INSERT INTO $wpdb->comments
|
$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)
|
(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
|
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;
|
$comment_id = $wpdb->insert_id;
|
||||||
|
|
Loading…
Reference in New Issue