summaryrefslogtreecommitdiffstats
path: root/wp-admin/comment.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-admin/comment.php')
-rw-r--r--wp-admin/comment.php18
1 files changed, 2 insertions, 16 deletions
diff --git a/wp-admin/comment.php b/wp-admin/comment.php
index 52ec008..bc6f510 100644
--- a/wp-admin/comment.php
+++ b/wp-admin/comment.php
@@ -3,22 +3,8 @@ require_once('admin.php');
$parent_file = 'edit.php';
$submenu_file = 'edit-comments.php';
-$wpvarstoreset = array('action');
-
-for ($i=0; $i<count($wpvarstoreset); $i += 1) {
- $wpvar = $wpvarstoreset[$i];
- if (!isset($$wpvar)) {
- if (empty($_POST["$wpvar"])) {
- if (empty($_GET["$wpvar"])) {
- $$wpvar = '';
- } else {
- $$wpvar = $_GET["$wpvar"];
- }
- } else {
- $$wpvar = $_POST["$wpvar"];
- }
- }
-}
+
+wp_reset_vars(array('action'));
if ( isset( $_POST['deletecomment'] ) )
$action = 'deletecomment';