From 0e41b5d52fdc6af6442816b5f465c9db9f84e126 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 19 Sep 2024 06:51:18 +0200 Subject: Adding upstream version 6.6.1+dfsg1. Signed-off-by: Daniel Baumann --- wp-admin/user-edit.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'wp-admin/user-edit.php') diff --git a/wp-admin/user-edit.php b/wp-admin/user-edit.php index bbb321a..0ab9aec 100644 --- a/wp-admin/user-edit.php +++ b/wp-admin/user-edit.php @@ -12,9 +12,10 @@ require_once __DIR__ . '/admin.php'; /** WordPress Translation Installation API */ require_once ABSPATH . 'wp-admin/includes/translation-install.php'; -wp_reset_vars( array( 'action', 'user_id', 'wp_http_referer' ) ); +$action = ! empty( $_REQUEST['action'] ) ? sanitize_text_field( $_REQUEST['action'] ) : ''; +$user_id = ! empty( $_REQUEST['user_id'] ) ? absint( $_REQUEST['user_id'] ) : 0; +$wp_http_referer = ! empty( $_REQUEST['wp_http_referer'] ) ? sanitize_text_field( $_REQUEST['wp_http_referer'] ) : ''; -$user_id = (int) $user_id; $current_user = wp_get_current_user(); if ( ! defined( 'IS_PROFILE_PAGE' ) ) { @@ -437,7 +438,7 @@ switch ( $action ) { - + ID ) ) : ?> -- cgit v1.2.3