Make WordPress Core

Ticket #31217: 31217-ms.diff

File 31217-ms.diff, 2.2 KB (added by Ipstenu, 11 years ago)
  • wp-admin/includes/ms.php

     
    253253        );
    254254        update_option( 'adminhash', $new_admin_email );
    255255
    256         $email_text = __( 'Dear user,
     256        $email_text = __( 'Howdy ###USERNAME###,
    257257
    258258You recently requested to have the administration email address on
    259259your site changed.
     260
    260261If this is correct, please click on the following link to change it:
    261262###ADMIN_URL###
    262263
     
    277278         * ###EMAIL###     The new email.
    278279         * ###SITENAME###  The name of the site.
    279280         * ###SITEURL###   The URL to the site.
     281         * ###USERNAME### The current user's username.
    280282         *
    281283         * @since MU
    282284         *
     
    289291        $content = str_replace( '###EMAIL###', $value, $content );
    290292        $content = str_replace( '###SITENAME###', get_site_option( 'site_name' ), $content );
    291293        $content = str_replace( '###SITEURL###', network_home_url(), $content );
     294        $content = str_replace( '###USERNAME###', $current_user->user_login, $content );
    292295
    293296        wp_mail( $value, sprintf( __( '[%s] New Admin Email Address' ), wp_specialchars_decode( get_option( 'blogname' ) ) ), $content );
    294297}
     
    331334                                );
    332335                update_option( $current_user->ID . '_new_email', $new_user_email );
    333336
    334                 $email_text = __( 'Dear user,
     337                $email_text = __( 'Howdy ###USERNAME###,
    335338
    336339You recently requested to have the email address on your account changed.
    337340If this is correct, please click on the following link to change it:
     
    354357                 * ###EMAIL### The new email.
    355358                 * ###SITENAME### The name of the site.
    356359                 * ###SITEURL### The URL to the site.
     360                 * ###USERNAME### The current user's username.
    357361                 *
    358362                 * @since MU
    359363                 *
     
    366370                $content = str_replace( '###EMAIL###', $_POST['email'], $content);
    367371                $content = str_replace( '###SITENAME###', get_site_option( 'site_name' ), $content );
    368372                $content = str_replace( '###SITEURL###', network_home_url(), $content );
     373                $content = str_replace( '###USERNAME###', $current_user->user_login, $content );
    369374
    370375                wp_mail( $_POST['email'], sprintf( __( '[%s] New Email Address' ), wp_specialchars_decode( get_option( 'blogname' ) ) ), $content );
    371376                $_POST['email'] = $current_user->user_email;