- fixed input POST data on Change Password

This commit is contained in:
yuriinalivaiko
2023-03-01 14:54:30 +02:00
parent b4b46b9643
commit 861930f108
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -330,7 +330,7 @@ if ( ! class_exists( 'um\core\Password' ) ) {
}
if ( $this->is_reset_request() ) {
UM()->form()->post_form = $_POST;
UM()->form()->post_form = wp_unslash( $_POST );
if ( empty( UM()->form()->post_form['mode'] ) ) {
UM()->form()->post_form['mode'] = 'password';
@@ -382,7 +382,7 @@ if ( ! class_exists( 'um\core\Password' ) ) {
}
if ( $this->is_change_request() ) {
UM()->form()->post_form = $_POST;
UM()->form()->post_form = wp_unslash( $_POST );
/**
* UM hook