Make WordPress Core

Ticket #31217: 31217.diff

File 31217.diff, 5.0 KB (added by Ipstenu, 11 years ago)

Full patch, all changes

  • 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:
     
    351354                 *
    352355                 * The following strings have a special meaning and will get replaced dynamically:
    353356                 * ###ADMIN_URL### The link to click on to confirm the email change. Required otherwise this functunalty is will break.
    354                  * ###EMAIL### The new email.
    355                  * ###SITENAME### The name of the site.
    356                  * ###SITEURL### The URL to the site.
     357                 * ###EMAIL###     The new email.
     358                 * ###SITENAME###  The name of the site.
     359                 * ###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;
  • wp-admin/includes/schema.php

     
    917917                $site_admins = get_site_option( 'site_admins' );
    918918        }
    919919
    920         $welcome_email = __( 'Dear User,
     920        $welcome_email = __( 'Howdy USERNAME,
    921921
    922922Your new SITE_NAME site has been successfully set up at:
    923923BLOG_URL
  • wp-admin/ms-delete-site.php

     
    2626}
    2727
    2828$blog = get_blog_details();
     29$user = wp_get_current_user();
    2930
    3031$title = __( 'Delete Site' );
    3132$parent_file = 'tools.php';
     
    4243
    4344        $url_delete = esc_url( admin_url( 'ms-delete-site.php?h=' . $hash ) );
    4445
    45         $content = __( "Dear User,
     46        $content = __( "Howdy ###USERNAME###,
     47       
    4648You recently clicked the 'Delete Site' link on your site and filled in a
    4749form on that page.
     50
    4851If you really want to delete your site, click the link below. You will not
    4952be asked to confirm again so only click this link if you are absolutely certain:
    5053###URL_DELETE###
     
    5558
    5659Thanks for using the site,
    5760Webmaster
     61
    5862###SITE_NAME###" );
    5963        /**
    6064         * Filter the email content sent when a site in a Multisite network is deleted.
     
    6771
    6872        $content = str_replace( '###URL_DELETE###', $url_delete, $content );
    6973        $content = str_replace( '###SITE_NAME###', $current_site->site_name, $content );
     74        $content = str_replace( '###USERNAME###', $user->user_login, $content );
    7075
    7176        wp_mail( get_option( 'admin_email' ), "[ " . wp_specialchars_decode( get_option( 'blogname' ) ) . " ] ".__( 'Delete My Site' ), $content );
    7277        ?>
  • wp-includes/ms-functions.php

     
    14341434
    14351435        $welcome_email = get_site_option( 'welcome_email' );
    14361436        if ( $welcome_email == false )
    1437                 $welcome_email = __( 'Dear User,
     1437                $welcome_email = __( 'Howdy USERNAME,
    14381438
    14391439Your new SITE_NAME site has been successfully set up at:
    14401440BLOG_URL
     
    20802080function welcome_user_msg_filter( $text ) {
    20812081        if ( !$text ) {
    20822082                remove_filter( 'site_option_welcome_user_email', 'welcome_user_msg_filter' );
    2083                 $text = __( 'Dear User,
     2083                $text = __( 'Howdy USERNAME,
    20842084
    20852085Your new account is set up.
    20862086