From cc1bfb1e55ab7387970a7dfb75d9e4ddc94b7dc1 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Tue, 17 Jul 2018 09:00:25 +0000 Subject: [PATCH] Privacy: Don't replace comment author URL and email with anything. Props TZ-Media, desrosj, birgire. Fixes #44141. Built from https://develop.svn.wordpress.org/trunk@43467 git-svn-id: http://core.svn.wordpress.org/trunk@43294 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment.php | 5 +++-- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/wp-includes/comment.php b/wp-includes/comment.php index 4c78eb9b6a..9862af3d07 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -3440,6 +3440,7 @@ function wp_comments_personal_data_eraser( $email_address, $page = 1 ) { ) ); + /* translators: Name of a comment's author after being anonymized. */ $anon_author = __( 'Anonymous' ); $messages = array(); @@ -3447,9 +3448,9 @@ function wp_comments_personal_data_eraser( $email_address, $page = 1 ) { $anonymized_comment = array(); $anonymized_comment['comment_agent'] = ''; $anonymized_comment['comment_author'] = $anon_author; - $anonymized_comment['comment_author_email'] = wp_privacy_anonymize_data( 'email', $comment->comment_author_email ); + $anonymized_comment['comment_author_email'] = ''; $anonymized_comment['comment_author_IP'] = wp_privacy_anonymize_data( 'ip', $comment->comment_author_IP ); - $anonymized_comment['comment_author_url'] = wp_privacy_anonymize_data( 'url', $comment->comment_author_url ); + $anonymized_comment['comment_author_url'] = ''; $anonymized_comment['user_id'] = 0; $comment_id = (int) $comment->comment_ID; diff --git a/wp-includes/version.php b/wp-includes/version.php index dbb82fc8d4..87886f81e5 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-43466'; +$wp_version = '5.0-alpha-43467'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.