Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for UM core 2.8.7; #99

Merged
merged 3 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
@@ -1,4 +1,4 @@
<?php

Check failure on line 1 in src/um-set-password/src/Core.php

View workflow job for this annotation

GitHub Actions / WPCS

Filenames should be all lowercase with hyphens as word separators. Expected core.php, but found Core.php.

Check failure on line 1 in src/um-set-password/src/Core.php

View workflow job for this annotation

GitHub Actions / WPCS

Class file names should be based on the class name with &quot;class-&quot; prepended. Expected class-core.php, but found Core.php.
/**
* Core class
*
Expand Down Expand Up @@ -93,7 +93,7 @@
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
Loading