Skip to content

Commit

Permalink
Remove trailing commas in parameters to avoid syntax error with some …
Browse files Browse the repository at this point in the history
…PHP versions (ex. 7.2.x)
  • Loading branch information
KZeni authored Apr 25, 2024
1 parent 88b503c commit a0afd35
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 @@ -1450,7 +1450,7 @@ public static function process_provider( $provider, $user, $is_post_request ) {
if ( ! $provider ) {
return new WP_Error(
'two_factor_provider_missing',
__( 'Cheatin’ uh?', 'two-factor' ),
__( 'Cheatin’ uh?', 'two-factor' )
);
}

Expand Down Expand Up @@ -1724,7 +1724,7 @@ public static function user_two_factor_options( $user ) {

printf(
'<fieldset id="two-factor-options" %s>',
$show_2fa_options ? '' : 'disabled="disabled"',
$show_2fa_options ? '' : 'disabled="disabled"'
);

wp_nonce_field( 'user_two_factor_options', '_nonce_user_two_factor_options', false );
Expand Down

0 comments on commit a0afd35

Please sign in to comment.