WordPress.org

Make WordPress Core

Ticket #52605: 52605.2.diff

File 52605.2.diff, 1004 bytes (added by Chouby, 7 months ago)
  • src/wp-includes/user.php

    diff --git src/wp-includes/user.php src/wp-includes/user.php
    index ce43a159b1..c4c44a0c69 100644
    function retrieve_password( $user_login = null ) { 
    27492749                return $key;
    27502750        }
    27512751
     2752        // Localize password reset message content for user.
     2753        $locale = get_user_locale( $user_data );
     2754
     2755        $switched_locale = switch_to_locale( $locale );
     2756
    27522757        if ( is_multisite() ) {
    27532758                $site_name = get_network()->site_name;
    27542759        } else {
    function retrieve_password( $user_login = null ) { 
    27592764                $site_name = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
    27602765        }
    27612766
    2762         // Localize password reset message content for user.
    2763         $locale = get_user_locale( $user_data );
    2764 
    2765         $switched_locale = switch_to_locale( $locale );
    2766 
    27672767        $message = __( 'Someone has requested a password reset for the following account:' ) . "\r\n\r\n";
    27682768        /* translators: %s: Site name. */
    27692769        $message .= sprintf( __( 'Site Name: %s' ), $site_name ) . "\r\n\r\n";