Make WordPress Core


Ignore:
Timestamp:
03/23/2007 12:59:21 AM (17 years ago)
Author:
matt
Message:

(int)er the dragon.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment.php

    r5056 r5087  
    346346    ");
    347347
    348     $id = $wpdb->insert_id;
     348    $id = (int) $wpdb->insert_id;
    349349
    350350    if ( $comment_approved == 1)
     
    393393    $commentdata['comment_approved'] = wp_allow_comment($commentdata);
    394394
    395     $comment_ID = wp_insert_comment($commentdata);
     395    $comment_ID = (int) wp_insert_comment($commentdata);
    396396
    397397    do_action('comment_post', $comment_ID, $commentdata['comment_approved']);
Note: See TracChangeset for help on using the changeset viewer.