Changeset 1603 for trunk/wp-trackback.php
- Timestamp:
- 09/05/2004 01:50:39 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-trackback.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-trackback.php
r1599 r1603 55 55 $now_gmt = current_time('mysql', 1); 56 56 57 $user_agent = addslashes($_SERVER['HTTP_USER_AGENT']); 58 57 59 $comment = convert_chars($comment); 58 60 $comment = format_to_post($comment); … … 67 69 $moderation_notify = get_settings('moderation_notify'); 68 70 69 if(check_comment($author, $email, $url, $comment, $user_ip )) {71 if(check_comment($author, $email, $url, $comment, $user_ip, $user_agent)) { 70 72 $approved = 1; 71 73 } else { … … 74 76 75 77 $result = $wpdb->query("INSERT INTO $wpdb->comments 76 (comment_post_ID, comment_author, comment_author_email, comment_author_url, comment_author_IP, comment_date, comment_date_gmt, comment_content, comment_approved )78 (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) 77 79 VALUES 78 ('$comment_post_ID', '$author', '$email', '$tb_url', '$user_ip', '$now', '$now_gmt', '$comment', '$approved' )80 ('$comment_post_ID', '$author', '$email', '$tb_url', '$user_ip', '$now', '$now_gmt', '$comment', '$approved', '$user_agent') 79 81 "); 80 82
Note: See TracChangeset
for help on using the changeset viewer.