diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index f7ae3c03d2..08c49fc21b 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -1953,4 +1953,20 @@ function get_udims($width, $height) { return array((int) ($width / $height * 96), 96); } +function wp_reset_vars($vars) { + for ($i=0; $i diff --git a/wp-admin/admin.php b/wp-admin/admin.php index 64632e95b9..68e627c86b 100644 --- a/wp-admin/admin.php +++ b/wp-admin/admin.php @@ -24,21 +24,7 @@ $what_to_show = get_settings('what_to_show'); $date_format = get_settings('date_format'); $time_format = get_settings('time_format'); -$wpvarstoreset = array('profile','redirect','redirect_url','a','popuptitle','popupurl','text', 'trackback', 'pingback'); -for ($i=0; $i +
diff --git a/wp-admin/options.php b/wp-admin/options.php index 7c51b693b6..d94634beb4 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