From a0afd359ee752a2b9309f72f785fd71413af64a6 Mon Sep 17 00:00:00 2001 From: Kurt Zenisek Date: Thu, 25 Apr 2024 10:49:59 -0500 Subject: [PATCH] Remove trailing commas in parameters to avoid syntax error with some PHP versions (ex. 7.2.x) --- class-two-factor-core.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/class-two-factor-core.php b/class-two-factor-core.php index 02d40e08..3c0df20a 100644 --- a/class-two-factor-core.php +++ b/class-two-factor-core.php @@ -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' ) ); } @@ -1724,7 +1724,7 @@ public static function user_two_factor_options( $user ) { printf( '
', - $show_2fa_options ? '' : 'disabled="disabled"', + $show_2fa_options ? '' : 'disabled="disabled"' ); wp_nonce_field( 'user_two_factor_options', '_nonce_user_two_factor_options', false );