Skip to content

Commit

Permalink
add workaround for bbpress frontend profile edit screen crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Zed committed Jul 17, 2021
1 parent f10c289 commit 73989bb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions class-two-factor-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,11 @@ public static function manage_users_custom_column( $output, $column_name, $user_
* @param WP_User $user WP_User object of the logged-in user.
*/
public static function user_two_factor_options( $user ) {

/* workaround for two factor options crashing bbpress' profile page */
if ( function_exists('bbp_is_user_home_edit') && bbp_is_user_home_edit() ) return;
/* end workaround */

wp_enqueue_style( 'user-edit-2fa', plugins_url( 'user-edit.css', __FILE__ ), array(), TWO_FACTOR_VERSION );

$enabled_providers = array_keys( self::get_available_providers_for_user( $user ) );
Expand Down

0 comments on commit 73989bb

Please sign in to comment.