Skip to content

Commit

Permalink
We should only care that the class exists
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparsd committed Dec 2, 2024
1 parent 2fee0b2 commit fc771fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions class-two-factor-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ] );
Expand Down

0 comments on commit fc771fb

Please sign in to comment.