mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
* added security condition to check that one logged-in user cannot activate another one user via email activation link;
* fixed double handler of email activation link (wp_die doesn't stop the script for some reason); * added redirects to login page with error notices instead of wp_die text;
This commit is contained in:
@@ -1362,7 +1362,7 @@ if ( ! class_exists( 'um\core\User' ) ) {
|
||||
<?php UM()->user()->auto_login( 10, true ); ?>
|
||||
*
|
||||
*/
|
||||
function auto_login( $user_id, $rememberme = 0 ) {
|
||||
public function auto_login( $user_id, $rememberme = 0 ) {
|
||||
|
||||
wp_set_current_user( $user_id );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user