Privacy: Don't replace comment author URL and email with anything.
Props TZ-Media, desrosj, birgire. Merges [43467] to the 4.9 branch. Fixes #44141. Built from https://develop.svn.wordpress.org/branches/4.9@43468 git-svn-id: http://core.svn.wordpress.org/branches/4.9@43295 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c0903e830b
commit
672ccbbc3c
|
@ -3324,6 +3324,7 @@ function wp_comments_personal_data_eraser( $email_address, $page = 1 ) {
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/* translators: Name of a comment's author after being anonymized. */
|
||||||
$anon_author = __( 'Anonymous' );
|
$anon_author = __( 'Anonymous' );
|
||||||
$messages = array();
|
$messages = array();
|
||||||
|
|
||||||
|
@ -3331,9 +3332,9 @@ function wp_comments_personal_data_eraser( $email_address, $page = 1 ) {
|
||||||
$anonymized_comment = array();
|
$anonymized_comment = array();
|
||||||
$anonymized_comment['comment_agent'] = '';
|
$anonymized_comment['comment_agent'] = '';
|
||||||
$anonymized_comment['comment_author'] = $anon_author;
|
$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_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;
|
$anonymized_comment['user_id'] = 0;
|
||||||
|
|
||||||
$comment_id = (int) $comment->comment_ID;
|
$comment_id = (int) $comment->comment_ID;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.9.8-alpha-43461';
|
$wp_version = '4.9.8-alpha-43468';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue