mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
- small code formatting;
This commit is contained in:
@@ -286,7 +286,7 @@ if ( ! class_exists( 'um\core\Password' ) ) {
|
||||
$rp_cookie = 'wp-resetpass-' . COOKIEHASH;
|
||||
|
||||
if ( isset( $_GET['hash'] ) ) {
|
||||
$userdata = get_userdata( wp_unslash( $_GET['user_id'] ) );
|
||||
$userdata = get_userdata( wp_unslash( absint( $_GET['user_id'] ) ) );
|
||||
if ( ! $userdata || is_wp_error( $userdata ) ) {
|
||||
wp_redirect( add_query_arg( array( 'act' => 'reset_password', 'error' => 'invalidkey' ), get_permalink() ) );
|
||||
exit;
|
||||
|
||||
Reference in New Issue
Block a user