Changeset 3366
- Timestamp:
- 12/28/05 00:42:42 (3 years ago)
- Files:
-
- trunk/wp-admin/edit-comments.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/edit-comments.php
r3036 r3366 45 45 $authordata = get_userdata( $wpdb->get_var("SELECT post_author FROM $wpdb->posts WHERE ID = $post_id") ); 46 46 if ( current_user_can('edit_post', $post_id) ) : 47 $wpdb->query("DELETE FROM $wpdb->comments WHERE comment_ID = $comment");47 wp_set_comment_status($comment, "delete"); 48 48 ++$i; 49 49 endif;
