From 51b94c3262a8917dbf4f979b2861bc603547826f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 16 Jun 2018 10:24:30 +0000 Subject: [PATCH] Privacy: Remove unnecessary `This email has been sent to ###EMAIL###` from privacy emails. The line was copied from the emails that get sent when an email address changes, without considering if it made sense in the new context. Props iandunn, ianbelanger, desrosj. Fixes #44030. git-svn-id: https://develop.svn.wordpress.org/trunk@43353 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/file.php | 5 +---- src/wp-includes/user.php | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/wp-admin/includes/file.php b/src/wp-admin/includes/file.php index 45356841df..da215b7a14 100644 --- a/src/wp-admin/includes/file.php +++ b/src/wp-admin/includes/file.php @@ -2202,7 +2202,7 @@ function wp_privacy_send_personal_data_export_email( $request_id ) { $expiration = apply_filters( 'wp_privacy_export_expiration', 3 * DAY_IN_SECONDS ); $expiration_date = date_i18n( get_option( 'date_format' ), time() + $expiration ); -/* translators: Do not translate EXPIRATION, LINK, EMAIL, SITENAME, SITEURL: those are placeholders. */ +/* translators: Do not translate EXPIRATION, LINK, SITENAME, SITEURL: those are placeholders. */ $email_text = __( 'Howdy, @@ -2213,8 +2213,6 @@ so please download it before then. ###LINK### -This email has been sent to ###EMAIL###. - Regards, All at ###SITENAME### ###SITEURL###' @@ -2226,7 +2224,6 @@ All at ###SITENAME### * The following strings have a special meaning and will get replaced dynamically: * ###EXPIRATION### The date when the URL will be automatically deleted. * ###LINK### URL of the personal data export file for the user. - * ###EMAIL### The email we are sending to. * ###SITENAME### The name of the site. * ###SITEURL### The URL to the site. * diff --git a/src/wp-includes/user.php b/src/wp-includes/user.php index d309e2f0a7..e3fb895f3d 100644 --- a/src/wp-includes/user.php +++ b/src/wp-includes/user.php @@ -3338,7 +3338,7 @@ function wp_send_user_request( $request_id ) { 'siteurl' => network_home_url(), ); - /* translators: Do not translate DESCRIPTION, CONFIRM_URL, EMAIL, SITENAME, SITEURL: those are placeholders. */ + /* translators: Do not translate DESCRIPTION, CONFIRM_URL, SITENAME, SITEURL: those are placeholders. */ $email_text = __( 'Howdy, @@ -3352,8 +3352,6 @@ To confirm this, please click on the following link: You can safely ignore and delete this email if you do not want to take this action. -This email has been sent to ###EMAIL###. - Regards, All at ###SITENAME### ###SITEURL###' @@ -3366,7 +3364,6 @@ All at ###SITENAME### * * ###DESCRIPTION### Description of the action being performed so the user knows what the email is for. * ###CONFIRM_URL### The link to click on to confirm the account action. - * ###EMAIL### The email we are sending to. * ###SITENAME### The name of the site. * ###SITEURL### The URL to the site. *