WordPress.org

Make WordPress Core

Changeset 51077


Ignore:
Timestamp:
06/06/2021 12:39:06 PM (4 months ago)
Author:
ocean90
Message:

Users: Add user’s locale to password reset link to ensure login screen matches the language of the email.

Props walbo.
See #34281, #52605.
Fixes #53321.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/user.php

    r51005 r51077  
    28002800    $message .= __( 'If this was a mistake, ignore this email and nothing will happen.' ) . "\r\n\r\n";
    28012801    $message .= __( 'To reset your password, visit the following address:' ) . "\r\n\r\n";
    2802     $message .= network_site_url( "wp-login.php?action=rp&key=$key&login=" . rawurlencode( $user_login ), 'login' ) . "\r\n\r\n";
     2802    $message .= network_site_url( "wp-login.php?action=rp&key=$key&login=" . rawurlencode( $user_login ), 'login' ) . '&wp_lang=' . $locale . "\r\n\r\n";
    28032803
    28042804    if ( ! is_user_logged_in() ) {
Note: See TracChangeset for help on using the changeset viewer.