summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-admin/edit-comments.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-01-02 17:10:03 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-01-02 17:10:03 +0000
commit4a7ec3a72a69e8f66dce65590900d59978798384 (patch)
tree23037940fad9aa64644958ac91e7fdadf8cd0f5d /wp-inst/wp-admin/edit-comments.php
parented4930953197324008fe13ae2eee874bbcbc48fd (diff)
downloadwordpress-mu-4a7ec3a72a69e8f66dce65590900d59978798384.tar.gz
wordpress-mu-4a7ec3a72a69e8f66dce65590900d59978798384.tar.xz
wordpress-mu-4a7ec3a72a69e8f66dce65590900d59978798384.zip
WP Merge
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@489 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-admin/edit-comments.php')
-rw-r--r--wp-inst/wp-admin/edit-comments.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/wp-inst/wp-admin/edit-comments.php b/wp-inst/wp-admin/edit-comments.php
index b13c7f1..74c4aee 100644
--- a/wp-inst/wp-admin/edit-comments.php
+++ b/wp-inst/wp-admin/edit-comments.php
@@ -44,7 +44,7 @@ if ( !empty( $_POST['delete_comments'] ) ) :
$post_id = $wpdb->get_var("SELECT comment_post_ID FROM $wpdb->comments WHERE comment_ID = $comment");
$authordata = get_userdata( $wpdb->get_var("SELECT post_author FROM $wpdb->posts WHERE ID = $post_id") );
if ( current_user_can('edit_post', $post_id) ) :
- $wpdb->query("DELETE FROM $wpdb->comments WHERE comment_ID = $comment");
+ wp_set_comment_status($comment, "delete");
++$i;
endif;
endforeach;