[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 11 20:35:16 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:  4.9.6
 Severity:  normal                        |  Resolution:
 Keywords:  gdpr has-patch needs-testing  |     Focuses:
------------------------------------------+------------------------------
Changes (by desrosj):

 * version:  trunk => 4.9.6


Comment:

 This looks good to me, @allendav! The `global $wpdb` declaration can be
 also removed at the top of the function. I did not get to look into the
 unit tests that we have for this function, but there may be some
 additional assertions we could add.

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


More information about the wp-trac mailing list