Make WordPress Core


Ignore:
Timestamp:
03/25/2007 11:06:28 PM (19 years ago)
Author:
ryan
Message:

Some int casts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-admin/edit-comments.php

    r4656 r5099  
    4545    foreach ($_POST['delete_comments'] as $comment) : // Check the permissions on each
    4646        $comment = (int) $comment;
    47         $post_id = $wpdb->get_var("SELECT comment_post_ID FROM $wpdb->comments WHERE comment_ID = $comment");
     47        $post_id = (int) $wpdb->get_var("SELECT comment_post_ID FROM $wpdb->comments WHERE comment_ID = $comment");
    4848        $authordata = get_userdata( $wpdb->get_var("SELECT post_author FROM $wpdb->posts WHERE ID = $post_id") );
    4949        if ( current_user_can('edit_post', $post_id) ) :
Note: See TracChangeset for help on using the changeset viewer.