Make WordPress Core


Ignore:
Timestamp:
07/17/2018 09:03:33 AM (7 years ago)
Author:
azaozz
Message:

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.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-includes/comment.php

    r43270 r43468  
    33253325    );
    33263326
     3327    /* translators: Name of a comment's author after being anonymized. */
    33273328    $anon_author = __( 'Anonymous' );
    33283329    $messages    = array();
     
    33323333        $anonymized_comment['comment_agent']        = '';
    33333334        $anonymized_comment['comment_author']       = $anon_author;
    3334         $anonymized_comment['comment_author_email'] = wp_privacy_anonymize_data( 'email', $comment->comment_author_email );
     3335        $anonymized_comment['comment_author_email'] = '';
    33353336        $anonymized_comment['comment_author_IP']    = wp_privacy_anonymize_data( 'ip', $comment->comment_author_IP );
    3336         $anonymized_comment['comment_author_url']   = wp_privacy_anonymize_data( 'url', $comment->comment_author_url );
     3337        $anonymized_comment['comment_author_url']   = '';
    33373338        $anonymized_comment['user_id']              = 0;
    33383339
Note: See TracChangeset for help on using the changeset viewer.