WordPress.org

Make WordPress Core

Changeset 41166


Ignore:
Timestamp:
07/27/2017 02:56:46 AM (10 months ago)
Author:
johnbillion
Message:

Users: Add the new email address to the email address change notification email.

Fixes #39112

File:
1 edited

Legend:

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

    r41165 r41166  
    19001900             *                - ###USERNAME###    The current user's username.
    19011901             *                - ###ADMIN_EMAIL### The admin email in case this was unexpected.
    1902              *                - ###EMAIL###       The old email.
     1902             *                - ###EMAIL###       The user's email address.
    19031903             *                - ###SITENAME###    The name of the site.
    19041904             *                - ###SITEURL###     The URL to the site.
     
    19211921
    19221922        if ( ! empty( $send_email_change_email ) ) {
    1923             /* translators: Do not translate USERNAME, ADMIN_EMAIL, EMAIL, SITENAME, SITEURL: those are placeholders. */
     1923            /* translators: Do not translate USERNAME, ADMIN_EMAIL, NEW_EMAIL, EMAIL, SITENAME, SITEURL: those are placeholders. */
    19241924            $email_change_text = __( 'Hi ###USERNAME###,
    19251925
    1926 This notice confirms that your email was changed on ###SITENAME###.
     1926This notice confirms that your email address on ###SITENAME### was changed to ###NEW_EMAIL###.
    19271927
    19281928If you did not change your email, please contact the Site Administrator at
     
    19561956             *                - ###USERNAME###    The current user's username.
    19571957             *                - ###ADMIN_EMAIL### The admin email in case this was unexpected.
    1958              *                - ###EMAIL###       The old email.
     1958             *                - ###NEW_EMAIL###   The new email address.
     1959             *                - ###EMAIL###       The old email address.
    19591960             *                - ###SITENAME###    The name of the site.
    19601961             *                - ###SITEURL###     The URL to the site.
     
    19681969            $email_change_email['message'] = str_replace( '###USERNAME###', $user['user_login'], $email_change_email['message'] );
    19691970            $email_change_email['message'] = str_replace( '###ADMIN_EMAIL###', get_option( 'admin_email' ), $email_change_email['message'] );
     1971            $email_change_email['message'] = str_replace( '###NEW_EMAIL###', $userdata['user_email'], $email_change_email['message'] );
    19701972            $email_change_email['message'] = str_replace( '###EMAIL###', $user['user_email'], $email_change_email['message'] );
    19711973            $email_change_email['message'] = str_replace( '###SITENAME###', $blog_name, $email_change_email['message'] );
Note: See TracChangeset for help on using the changeset viewer.