- small notices fixed;

- fixed role submit for extensions integrations;
This commit is contained in:
nikitozzzzzzz
2018-02-01 10:59:44 +02:00
parent 7d7a3ef73c
commit b9f88bb06b
2 changed files with 11 additions and 2 deletions
+2 -1
View File
@@ -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 ] != '' ){
+9 -1
View File
@@ -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;
}