Ticket #44179: 44179.2.diff
File 44179.2.diff, 785 bytes (added by , 4 years ago) |
---|
-
src/wp-includes/comment.php
3599 3599 $updated = $wpdb->update( $wpdb->comments, $anonymized_comment, $args ); 3600 3600 3601 3601 if ( $updated ) { 3602 /** 3603 * Fires after a comment has been anonymized. 3604 * 3605 * @since 5.4.0 3606 * 3607 * @param int $comment_id Comment ID. 3608 * @param array $anonymized_comment Anonymized comment data. 3609 * @param WP_Comment $comment Original WP_Comment object. 3610 */ 3611 do_action( 'comment_anonymized', $comment_id, $anonymized_comment, $comment ); 3612 3602 3613 $items_removed = true; 3603 3614 clean_comment_cache( $comment_id ); 3604 3615 } else {