From fc771fb4ca8314029d07e6c8ddc0a178ee50c170 Mon Sep 17 00:00:00 2001 From: Kaspars Dambis Date: Mon, 2 Dec 2024 14:00:41 +0200 Subject: [PATCH] We should only care that the class exists --- class-two-factor-core.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/class-two-factor-core.php b/class-two-factor-core.php index 440e01f6..421d6787 100644 --- a/class-two-factor-core.php +++ b/class-two-factor-core.php @@ -241,9 +241,9 @@ private static function get_providers_classes( $providers ) { $class = apply_filters( "two_factor_provider_classname_{$provider_key}", $class, $path ); /** - * Confirm that it's been successfully included before instantiating. + * Confirm that it's been successfully included. */ - if ( method_exists( $class, 'get_instance' ) ) { + if ( class_exists( $class ) ) { $providers[ $provider_key ] = $class; } else { unset( $providers[ $provider_key ] );