Fix boulk comment delete. Bug 291. Patch from ringmaster.

git-svn-id: https://develop.svn.wordpress.org/trunk@1690 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2004-09-18 05:56:28 +00:00
parent de9329d95b
commit 85acf6cfc4
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ function checkAll(form)
<?php
if ( !empty( $_POST['delete_comments'] ) ) :
$i = 0;
foreach ($delete_comments as $comment) : // Check the permissions on each
foreach ($_POST['delete_comments'] as $comment) : // Check the permissions on each
$comment = (int) $comment;
$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") );