mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
* enhancements related to #1599;
This commit is contained in:
@@ -454,10 +454,13 @@ if ( ! class_exists( 'um\core\Password' ) ) {
|
||||
|
||||
if ( isset( $data ) && is_a( $data, '\WP_User' ) ) {
|
||||
um_fetch_user( $data->ID );
|
||||
UM()->user()->password_reset();
|
||||
|
||||
if ( false === UM()->options()->get( 'only_approved_user_reset_password' ) || UM()->common()->users()->has_status( $data->ID, 'approved' ) ) {
|
||||
UM()->user()->password_reset();
|
||||
}
|
||||
}
|
||||
|
||||
wp_redirect( um_get_core_page('password-reset', 'checkemail' ) );
|
||||
wp_safe_redirect( um_get_core_page( 'password-reset', 'checkemail' ) );
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user