From 7ad945cb38a8888fca2962e3d13f425779a86fed Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Thu, 5 Sep 2024 14:48:21 +1000 Subject: [PATCH] Enable the "please enable 2FA" login nag for plugin + theme authors. (#313) --- wporg-two-factor.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/wporg-two-factor.php b/wporg-two-factor.php index 4a46842e..740da23f 100644 --- a/wporg-two-factor.php +++ b/wporg-two-factor.php @@ -274,19 +274,17 @@ function user_should_2fa( $user ) : bool { return true; } - /* // If a user ... they should have 2FA enabled. if ( // Is (or was) a plugin committer $user->has_plugins || // Has (or had) a live theme - $user->has_themes || + $user->has_themes /* || // Has (or had) an elevated role on a site (WordPress.org, BuddyPress.org, bbPress.org, WordCamp.org) - $user->has_elevated_role + $user->has_elevated_role */ ) { return true; } - */ return false; }