From abe1602b3421472b902bd93273e67dc4d0cc6df5 Mon Sep 17 00:00:00 2001 From: Yurii Nalivaiko Date: Thu, 12 Jul 2018 18:18:47 +0300 Subject: [PATCH] Revert "- fixed approve user twice on registration." This reverts commit f75d11b50d1959226572ca7bf0e429718bbe773e. --- includes/core/class-user.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/includes/core/class-user.php b/includes/core/class-user.php index 7ccd1d78..229cc7dc 100644 --- a/includes/core/class-user.php +++ b/includes/core/class-user.php @@ -1218,8 +1218,6 @@ 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}" );