$redir =
admin_url( 'edit-comments.php'
);
} $redir =
remove_query_arg( array
( 'spammed', 'unspammed', 'trashed', 'untrashed', 'deleted', 'ids', 'approved', 'unapproved'
),
$redir );
switch ( $action ) { case 'deletecomment':
wp_delete_comment( $comment );
$redir =
add_query_arg( array
( 'deleted' => '1'
),
$redir );
break;
case 'trashcomment':
wp_trash_comment( $comment );
$redir =
add_query_arg( array
( 'trashed' => '1',
'ids' =>
$comment_id,
),
$redir );
break;
case 'untrashcomment':
wp_untrash_comment( $comment );
$redir =
add_query_arg( array
( 'untrashed' => '1'
),
$redir );