[wp-trac] [WordPress Trac] #43442: Add tools for anonymizing of commenters

WordPress Trac noreply at wordpress.org
Tue Apr 17 18:07:45 UTC 2018


#43442: Add tools for anonymizing of commenters
------------------------------------------+---------------------
 Reporter:  azaozz                        |       Owner:  (none)
     Type:  enhancement                   |      Status:  new
 Priority:  normal                        |   Milestone:  5.0
Component:  General                       |     Version:
 Severity:  normal                        |  Resolution:
 Keywords:  gdpr has-patch needs-testing  |     Focuses:
------------------------------------------+---------------------

Comment (by birgire):

 [attachment:43442.4.c.diff] is a suggestion that:

 - Adds the c) approach (mentioned above) to [attachment:43442.3.diff].
 - Adds {{{clean_comment_cache( $comment->comment_ID )}}} after each
 comment update.
 - Adjustments according to the ''Coding Standard''.
 - Adds the tests
  - {{{test_wp_comments_personal_data_eraser()}}}
  - {{{test_wp_comments_personal_data_eraser_empty_first_page_output()}}}
  -
 {{{test_wp_comments_personal_data_eraser_non_empty_first_page_output()}}}
  - {{{test_wp_comments_personal_data_eraser_empty_second_page_output()}}}

 I was wondering about the idea of {{{num_items_retained}}} and
 {{{message}}} in {{{wp_comments_personal_data_eraser()}}}:

 In the patch I set {{{'num_items_retained' => count( $comments ) -
 $num_items_removed}}}, i.e. the number of comments that were not erased
 due to some error. Is that correct understanding? The {{{message}}} is
 still an empty array though.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/43442#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list