Changeset 10536
- Timestamp:
- 02/10/2009 07:16:00 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment.php
r10465 r10536 874 874 if ( ! isset($comment_approved) ) 875 875 $comment_approved = 1; 876 if ( ! isset($comment_karma) ) 877 $comment_karma = 0; 876 878 if ( ! isset($user_id) ) 877 879 $user_id = 0; … … 880 882 881 883 $result = $wpdb->query( $wpdb->prepare("INSERT INTO $wpdb->comments 882 (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_parent, user_id)883 VALUES (%d, %s, %s, %s, %s, %s, %s, %s, % s, %s, %s, %d, %d)",884 $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_parent, $user_id) );884 (comment_post_ID, comment_author, comment_author_email, comment_author_url, comment_author_IP, comment_date, comment_date_gmt, comment_content, comment_karma, comment_approved, comment_agent, comment_type, comment_parent, user_id) 885 VALUES (%d, %s, %s, %s, %s, %s, %s, %s, %d, %s, %s, %s, %d, %d)", 886 $comment_post_ID, $comment_author, $comment_author_email, $comment_author_url, $comment_author_IP, $comment_date, $comment_date_gmt, $comment_content, $comment_karma, $comment_approved, $comment_agent, $comment_type, $comment_parent, $user_id) ); 885 887 886 888 $id = (int) $wpdb->insert_id; … … 1100 1102 comment_author_email = %s, 1101 1103 comment_approved = %s, 1104 comment_karma = %d, 1102 1105 comment_author_url = %s, 1103 1106 comment_date = %s, … … 1108 1111 $comment_author_email, 1109 1112 $comment_approved, 1113 $comment_karma, 1110 1114 $comment_author_url, 1111 1115 $comment_date,
Note: See TracChangeset
for help on using the changeset viewer.