Skip to content

Commit

Permalink
Merge pull request #99 from ultimatemember/update/core287
Browse files Browse the repository at this point in the history
Update for UM core 2.8.7;
  • Loading branch information
nikitasinelnikov authored Sep 27, 2024
2 parents d075928 + 5d94165 commit 55f176a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/um-cronjob-activation-email/src/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function resend_activation_notify() {

$status = um_user( 'account_status' );
if ( 'awaiting_email_confirmation' === $status ) {
UM()->user()->email_pending();
UM()->common()->users()->send_activation( $user_id, true );
um_reset_user();
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/um-set-password/src/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function ( $translated_text, $untranslated_text, $domain ) {
public function password_has_changed( $user_id ) {
if ( isset( $_REQUEST['set_pass'] ) && 'new_user' === sanitize_key( $_REQUEST['set_pass'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
um_fetch_user( $user_id );
UM()->user()->approve( false );
UM()->common()->users()->approve( $user_id, true );
}
wp_safe_redirect( um_get_core_page( 'login', 'password_set' ) );
exit;
Expand Down

0 comments on commit 55f176a

Please sign in to comment.