Make WordPress Core

Ticket #31217: 31217-ms-delete-site.diff

File 31217-ms-delete-site.diff, 1.3 KB (added by Ipstenu, 11 years ago)

With Username

  • 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###,
    4647You recently clicked the 'Delete Site' link on your site and filled in a
    4748form on that page.
     49
    4850If you really want to delete your site, click the link below. You will not
    4951be asked to confirm again so only click this link if you are absolutely certain:
    5052###URL_DELETE###
     
    5557
    5658Thanks for using the site,
    5759Webmaster
     60
    5861###SITE_NAME###" );
     62
    5963        /**
    6064         * Filter the email content sent when a site in a Multisite network is deleted.
    6165         *
     
    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        ?>