diff --git a/class-two-factor-core.php b/class-two-factor-core.php index 26cc9e55..55fdfb2c 100644 --- a/class-two-factor-core.php +++ b/class-two-factor-core.php @@ -1934,7 +1934,7 @@ public static function enable_provider_for_user( $user_id, $new_provider ) { $enabled_providers[] = $new_provider; - return update_user_meta( $user_id, self::ENABLED_PROVIDERS_USER_META_KEY, $enabled_providers ); + return (bool) update_user_meta( $user_id, self::ENABLED_PROVIDERS_USER_META_KEY, $enabled_providers ); } /**