Changeset 5087 for trunk/wp-includes/comment.php
- Timestamp:
- 03/23/2007 12:59:21 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment.php
r5056 r5087 346 346 "); 347 347 348 $id = $wpdb->insert_id;348 $id = (int) $wpdb->insert_id; 349 349 350 350 if ( $comment_approved == 1) … … 393 393 $commentdata['comment_approved'] = wp_allow_comment($commentdata); 394 394 395 $comment_ID = wp_insert_comment($commentdata);395 $comment_ID = (int) wp_insert_comment($commentdata); 396 396 397 397 do_action('comment_post', $comment_ID, $commentdata['comment_approved']);
Note: See TracChangeset
for help on using the changeset viewer.