Skip to content

Commit

Permalink
Use HTML link for password reset email.
Browse files Browse the repository at this point in the history
See #3406.
  • Loading branch information
boonebgorges committed Sep 4, 2024
1 parent 85a2510 commit 8c6c6fd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion wp-content/mu-plugins/openlab-password-tools.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ function( $message, $key, $user_login, $user_data ) {
$message .= sprintf( __( 'Username: %s' ), $user_login ) . "\r\n\r\n";

$message .= 'Visit the following address to choose a new password:' . "\r\n\r\n";
$message .= network_site_url( "wp-login.php?action=rp&key=$key&login=" . rawurlencode( $user_login ), 'login' ) . '&wp_lang=' . $locale . "\r\n\r\n";

$url = network_site_url( "wp-login.php?action=rp&key=$key&login=" . rawurlencode( $user_login ), 'login' ) . '&wp_lang=' . $locale . "\r\n\r\n";

$message .= '<a href="' . $url . '">' . $url . '</a>' . "\r\n\r\n";

$message .= __( 'If this was a mistake, ignore this email and nothing will happen.' ) . "\r\n\r\n";

Expand Down

0 comments on commit 8c6c6fd

Please sign in to comment.