Make WordPress Core


Ignore:
Timestamp:
02/10/2015 07:46:50 AM (10 years ago)
Author:
SergeyBiryukov
Message:

Replace generic "Dear user" greeting in email notifications with a more personalized one.

props Ipstenu.
fixes #31217.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/ms-delete-site.php

    r27801 r31403  
    2727
    2828$blog = get_blog_details();
     29$user = wp_get_current_user();
    2930
    3031$title = __( 'Delete Site' );
     
    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:
     
    6669    $content = apply_filters( 'delete_site_email_content', $content );
    6770
     71    $content = str_replace( '###USERNAME###', $user->user_login, $content );
    6872    $content = str_replace( '###URL_DELETE###', $url_delete, $content );
    6973    $content = str_replace( '###SITE_NAME###', $current_site->site_name, $content );
Note: See TracChangeset for help on using the changeset viewer.