summaryrefslogtreecommitdiffstats
path: root/wp-admin/options-head.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-admin/options-head.php')
-rw-r--r--wp-admin/options-head.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/wp-admin/options-head.php b/wp-admin/options-head.php
index d96978b..9dba370 100644
--- a/wp-admin/options-head.php
+++ b/wp-admin/options-head.php
@@ -8,7 +8,7 @@
* @subpackage Administration
*/
-wp_reset_vars( array( 'action' ) );
+$action = ! empty( $_REQUEST['action'] ) ? sanitize_text_field( $_REQUEST['action'] ) : '';
if ( isset( $_GET['updated'] ) && isset( $_GET['page'] ) ) {
// For back-compat with plugins that don't use the Settings API and just set updated=1 in the redirect.