wp/wp-admin/options-head.php
changeset 21 48c4eec2b7e6
parent 16 a86126ab1dd4
child 22 8c2e4d02f4ef
--- a/wp/wp-admin/options-head.php	Thu Sep 29 08:06:27 2022 +0200
+++ b/wp/wp-admin/options-head.php	Fri Sep 05 18:40:08 2025 +0200
@@ -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.