summaryrefslogtreecommitdiffstats
path: root/wp-admin/options.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-admin/options.php')
-rw-r--r--wp-admin/options.php16
1 files changed, 1 insertions, 15 deletions
diff --git a/wp-admin/options.php b/wp-admin/options.php
index 020f0e1..78d49fe 100644
--- a/wp-admin/options.php
+++ b/wp-admin/options.php
@@ -5,21 +5,7 @@ $title = __('Options');
$this_file = 'options.php';
$parent_file = 'options-general.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 ( !current_user_can('manage_options') )
die ( __('Cheatin&#8217; uh?') );