Changeset 5099 for branches/2.0/wp-admin/edit-comments.php
- Timestamp:
- 03/25/2007 11:06:28 PM (19 years ago)
- File:
-
- 1 edited
-
branches/2.0/wp-admin/edit-comments.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/wp-admin/edit-comments.php
r4656 r5099 45 45 foreach ($_POST['delete_comments'] as $comment) : // Check the permissions on each 46 46 $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"); 48 48 $authordata = get_userdata( $wpdb->get_var("SELECT post_author FROM $wpdb->posts WHERE ID = $post_id") ); 49 49 if ( current_user_can('edit_post', $post_id) ) :
Note: See TracChangeset
for help on using the changeset viewer.