mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fixed approve user twice on registration.
This commit is contained in:
@@ -1218,6 +1218,8 @@ if ( ! class_exists( 'um\core\User' ) ) {
|
||||
*
|
||||
*/
|
||||
function approve() {
|
||||
if( um_user('account_status') === 'approved' ) return true;
|
||||
|
||||
$user_id = um_user('ID');
|
||||
delete_option( "um_cache_userdata_{$user_id}" );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user