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;