mirror of
git://develop.git.wordpress.org/
synced 2025-02-25 00:52:55 +01:00
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
This commit is contained in:
parent
4fe4ec5c05
commit
11d220ba2f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user