[wp-trac] [WordPress Trac] #44179: Use wp_update_comment instead of $wpdb->update $wpdb->comments when anonymizing comments

WordPress Trac noreply at wordpress.org
Mon Jun 18 16:04:39 UTC 2018


#44179: Use wp_update_comment instead of $wpdb->update $wpdb->comments when
anonymizing comments
------------------------------------------+---------------------
 Reporter:  allendav                      |       Owner:  (none)
     Type:  enhancement                   |      Status:  new
 Priority:  normal                        |   Milestone:  4.9.7
Component:  Privacy                       |     Version:  4.9.6
 Severity:  normal                        |  Resolution:
 Keywords:  gdpr has-patch needs-testing  |     Focuses:
------------------------------------------+---------------------

Comment (by azaozz):

 Thinking that this has the potential to slow things considerably,
 especially when plugins perform some (remote) actions on updating a
 comment.

 How about we add another hook, perhaps `do_action( 'comment_anonymized',
 $comment_id, $anonymized_comment )` (props @desrosj for the name)? This
 way plugins will be able to hook into this "special case" of updating a
 comment.

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


More information about the wp-trac mailing list