mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Replace generic "Dear user" greeting in email notifications with a more personalized one.
props Ipstenu. fixes #31217. git-svn-id: https://develop.svn.wordpress.org/trunk@31403 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -26,6 +26,7 @@ if ( isset( $_GET['h'] ) && $_GET['h'] != '' && get_option( 'delete_blog_hash' )
|
||||
}
|
||||
|
||||
$blog = get_blog_details();
|
||||
$user = wp_get_current_user();
|
||||
|
||||
$title = __( 'Delete Site' );
|
||||
$parent_file = 'tools.php';
|
||||
@@ -42,9 +43,11 @@ if ( isset( $_POST['action'] ) && $_POST['action'] == 'deleteblog' && isset( $_P
|
||||
|
||||
$url_delete = esc_url( admin_url( 'ms-delete-site.php?h=' . $hash ) );
|
||||
|
||||
$content = __( "Dear User,
|
||||
$content = __( "Howdy ###USERNAME###,
|
||||
|
||||
You recently clicked the 'Delete Site' link on your site and filled in a
|
||||
form on that page.
|
||||
|
||||
If you really want to delete your site, click the link below. You will not
|
||||
be asked to confirm again so only click this link if you are absolutely certain:
|
||||
###URL_DELETE###
|
||||
@@ -65,6 +68,7 @@ Webmaster
|
||||
*/
|
||||
$content = apply_filters( 'delete_site_email_content', $content );
|
||||
|
||||
$content = str_replace( '###USERNAME###', $user->user_login, $content );
|
||||
$content = str_replace( '###URL_DELETE###', $url_delete, $content );
|
||||
$content = str_replace( '###SITE_NAME###', $current_site->site_name, $content );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user