From 7d0ffebe6c7e806e7d5d3a2ca465a135cd9d6d3c Mon Sep 17 00:00:00 2001 From: Kurt Zenisek Date: Mon, 27 Mar 2023 10:59:27 -0500 Subject: [PATCH] Remove unnecessary comma to fix fatal error on PHP 7.2 (#547) Co-authored-by: Ian Dunn --- 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 54a05b27..6a990c87 100644 --- a/class-two-factor-core.php +++ b/class-two-factor-core.php @@ -666,7 +666,7 @@ public static function maybe_show_reset_password_notice( $errors ) { if ( ! $attempted_user ) { return $errors; } - + $password_was_reset = get_user_meta( $attempted_user->ID, self::USER_PASSWORD_WAS_RESET_KEY, true ); if ( ! $password_was_reset ) { @@ -1323,7 +1323,7 @@ public static function notify_user_password_reset( $user ) { esc_html( $user->user_login ), home_url(), 'https://wordpress.org/documentation/article/password-best-practices/', - esc_url( add_query_arg( 'action', 'lostpassword', wp_login_url() ) ), + esc_url( add_query_arg( 'action', 'lostpassword', wp_login_url() ) ) ); $user_message = str_replace( "\t", '', $user_message );