Make WordPress Core


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

(int)er the dragon.

File:
1 edited

Legend:

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

    r5056 r5087  
    5757    foreach ($_POST['delete_comments'] as $comment) : // Check the permissions on each
    5858        $comment = (int) $comment;
    59         $post_id = $wpdb->get_var("SELECT comment_post_ID FROM $wpdb->comments WHERE comment_ID = $comment");
     59        $post_id = (int) $wpdb->get_var("SELECT comment_post_ID FROM $wpdb->comments WHERE comment_ID = $comment");
    6060        // $authordata = get_userdata( $wpdb->get_var("SELECT post_author FROM $wpdb->posts WHERE ID = $post_id") );
    6161        if ( current_user_can('edit_post', $post_id) ) {
Note: See TracChangeset for help on using the changeset viewer.