[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 May 21 20:13:59 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:  Awaiting Review
Component:  Privacy      |    Version:  trunk
 Severity:  normal       |   Keywords:  gdpr needs-patch
  Focuses:               |
-------------------------+------------------------------
 During the course of the development on #43442 we switched from
 `wp_update_comment` to a direct `$wpdb->update( $wpdb->comments,
 $anonymized_comment, $args );`

 Unfortunately, plugins that do things with comments when they change are
 more likely to hook wp_update_comment - so plugins like that are unaware
 when comments are anonymized

 Let's switch back to wp_update_comment (as it was in earlier diffs on that
 ticket)

 cc @azaozz

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


More information about the wp-trac mailing list