From 1aa2bfca3692a032848edc697ab355b9d315fa10 Mon Sep 17 00:00:00 2001 From: Kaspars Dambis Date: Fri, 14 Feb 2025 15:38:05 +0200 Subject: [PATCH] We have the user context so pass it along --- class-two-factor-core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class-two-factor-core.php b/class-two-factor-core.php index 80df4e25..bedf26f1 100644 --- a/class-two-factor-core.php +++ b/class-two-factor-core.php @@ -636,7 +636,7 @@ public static function get_primary_provider_for_user( $user = null ) { return null; } - $providers = self::get_supported_providers_for_user(); + $providers = self::get_supported_providers_for_user( $user ); $available_providers = self::get_available_providers_for_user( $user ); // If there's only one available provider, force that to be the primary.