Skip to content

Commit

Permalink
Remove unnecessary comma to fix fatal error on PHP 7.2 (#547)
Browse files Browse the repository at this point in the history
Co-authored-by: Ian Dunn <[email protected]>
  • Loading branch information
KZeni and iandunn authored Mar 27, 2023
1 parent 2fa64f6 commit 7d0ffeb
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 @@ -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 ) {
Expand Down Expand Up @@ -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 );

Expand Down

0 comments on commit 7d0ffeb

Please sign in to comment.