Ref checks from mdawaffe.

git-svn-id: https://develop.svn.wordpress.org/trunk@3665 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2006-03-30 23:12:54 +00:00
parent aa88f20cff
commit 5a5b80e6a0
11 changed files with 27 additions and 3 deletions

View File

@@ -51,6 +51,8 @@ function getNumChecked(form)
<p><a href="?mode=view"><?php _e('View Mode') ?></a> | <a href="?mode=edit"><?php _e('Mass Edit Mode') ?></a></p>
<?php
if ( !empty( $_POST['delete_comments'] ) ) :
check_admin_referer();
$i = 0;
foreach ($_POST['delete_comments'] as $comment) : // Check the permissions on each
$comment = (int) $comment;