mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
- fixed input POST data on Change Password
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user