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:
parent
de9329d95b
commit
85acf6cfc4
@ -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") );
|
||||
|
Loading…
x
Reference in New Issue
Block a user