Skip to content

Commit

Permalink
Merge pull request #604 from KZeni/patch-2
Browse files Browse the repository at this point in the history
Remove trailing commas in parameters to avoid syntax error with some PHP versions (ex. 7.2.x)
  • Loading branch information
kasparsd authored Apr 25, 2024
2 parents 88b503c + a0afd35 commit 5ec52bb
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 5ec52bb

Please sign in to comment.