Skip to content

Commit

Permalink
Enable the "please enable 2FA" login nag for plugin + theme authors. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dd32 committed Oct 8, 2024
1 parent 5b1e7e4 commit 7ad945c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions wporg-two-factor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7ad945c

Please sign in to comment.