E-Mail for password reset is missing the username
-
Hello,
I’m on the latest version of WooCommerce as of 2022-03-28 and I already disabled all other plugins without success.
The problem is, when a user has forgotten his password and let WooCommerce send a link to set a new password, the email is missing the username of that user. It reads as the following:
Hi {username}, Someone has requested a new password for the following account on %s: If you didn't make this request, just ignore this email. If you'd like to proceed: {url}
The problem is, the username after “following account on %s:” is missing. Only the username in the first line (“Hi {username},”) is visible.
I think the code for this can be found in
/wp-content/plugins/woocommerce/templates/emails/customer-reset-password.php
(there is no child template that overrides the file)
and the line is 31:
<p><?php printf( esc_html__( 'Username: %s', 'woocommerce' ), esc_html( $user_login ) ); ?></p>
I just can’t see any problem there.
The bug is 100% reproducible.
I appreciate any help you can offer
Thanks a lot !
Kind regards,
Ben
- The topic ‘E-Mail for password reset is missing the username’ is closed to new replies.