Changeset 1705
- Timestamp:
- 09/22/2004 07:44:35 PM (20 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions-post.php
r1630 r1705 357 357 extract($commentdata); 358 358 359 $comment_post_ id = (int) $comment_post_id;359 $comment_post_ID = (int) $comment_post_ID; 360 360 361 361 $comment_author = strip_tags($comment_author); … … 386 386 } 387 387 388 if( check_comment($ author, $email, $url, $comment, $user_ip, $user_agent) )388 if( check_comment($comment_author, $comment_author_email, $comment_author_url, $comment_content, $user_ip, $user_agent) ) 389 389 $approved = 1; 390 390 else … … 394 394 (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) 395 395 VALUES 396 ('$comment_post_ID', '$ author', '$email', '$tb_url', '$user_ip', '$now', '$now_gmt', '$comment', '$approved', '$user_agent')396 ('$comment_post_ID', '$comment_author', '$comment_author_email', '$comment_author_url', '$user_ip', '$now', '$now_gmt', '$comment_content', '$approved', '$user_agent') 397 397 "); 398 398 -
trunk/wp-trackback.php
r1696 r1705 63 63 $blog_name = (strlen($blog_name) > 250) ? substr($blog_name, 0, 250) . '...' : $blog_name; 64 64 65 $comment_post_ id= $tb_id;66 $comm ment_author = $blog_name;65 $comment_post_ID = $tb_id; 66 $comment_author = $blog_name; 67 67 $comment_author_email = ''; 68 68 $comment_author_url = $tb_url; … … 70 70 $comment_type = 'trackback'; 71 71 72 $commentdata = compact('comment_post_ id', 'comment_author', 'comment_author_email', 'comment_author_url', 'comment_content', 'comment_type');72 $commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_email', 'comment_author_url', 'comment_content', 'comment_type'); 73 73 74 74 wp_new_comment($commentdata);
Note: See TracChangeset
for help on using the changeset viewer.