Skip to content

Commit

Permalink
Update and move two factor option heading out of table
Browse files Browse the repository at this point in the history
Align two factor options with title
  • Loading branch information
thrijith committed Aug 16, 2024
1 parent e5d6b20 commit f5db7d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 2 additions & 4 deletions class-two-factor-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -1405,7 +1405,7 @@ public static function _login_form_revalidate_2fa( $nonce = '', $provider = '',
) );

do_action( 'two_factor_user_revalidated', $user, $provider );

// Must be global because that's how login_header() uses it.
global $interim_login;
$interim_login = isset( $_REQUEST['interim-login'] ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited,WordPress.Security.NonceVerification.Recommended
Expand Down Expand Up @@ -1721,12 +1721,10 @@ public static function user_two_factor_options( $user ) {

wp_nonce_field( 'user_two_factor_options', '_nonce_user_two_factor_options', false );
?>
<h3><?php esc_html_e( 'Two-Factor Options', 'two-factor' ); ?></h3>
<input type="hidden" name="<?php echo esc_attr( self::ENABLED_PROVIDERS_USER_META_KEY ); ?>[]" value="<?php /* Dummy input so $_POST value is passed when no providers are enabled. */ ?>" />
<table class="form-table">
<tr>
<th>
<?php esc_html_e( 'Two-Factor Options', 'two-factor' ); ?>
</th>
<td>
<table class="two-factor-methods-table">
<thead>
Expand Down
4 changes: 4 additions & 0 deletions user-edit.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,7 @@
display: block;
font-weight: 700;
}

#two-factor-options table.form-table td {
padding: 0;
}

0 comments on commit f5db7d2

Please sign in to comment.