mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- small notices fixed;
- fixed role submit for extensions integrations;
This commit is contained in:
@@ -199,7 +199,8 @@ if ( ! class_exists( 'Form' ) ) {
|
||||
} elseif ( isset( $this->post_form['mode'] ) && $this->post_form['mode'] == 'register' ) {
|
||||
$role = $this->assigned_role( $this->form_id );
|
||||
$this->post_form['role'] = $role;
|
||||
$this->post_form['submitted']['role'] = $role;
|
||||
//fix for social login
|
||||
//$this->post_form['submitted']['role'] = $role;
|
||||
}
|
||||
|
||||
if ( isset( $_POST[ UM()->honeypot ] ) && $_POST[ UM()->honeypot ] != '' ){
|
||||
|
||||
@@ -66,15 +66,23 @@ if ( ! defined( 'ABSPATH' ) ) exit;
|
||||
add_action( 'send_password_change_email','um_send_password_change_email', 10, 1 );
|
||||
function um_send_password_change_email( $args ) {
|
||||
|
||||
if ( ! is_array( $args ) )
|
||||
return false;
|
||||
|
||||
/**
|
||||
* @var $user_id
|
||||
*/
|
||||
extract( $args );
|
||||
|
||||
if ( ! isset( $user_id ) )
|
||||
return false;
|
||||
|
||||
um_fetch_user( $user_id );
|
||||
|
||||
UM()->user()->password_changed();
|
||||
|
||||
um_reset_user();
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user