Make WordPress Core

Ticket #44179: 44179.2.diff

File 44179.2.diff, 785 bytes (added by nielsdeblaauw, 4 years ago)
  • src/wp-includes/comment.php

     
    35993599                $updated = $wpdb->update( $wpdb->comments, $anonymized_comment, $args );
    36003600
    36013601                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
    36023613                        $items_removed = true;
    36033614                        clean_comment_cache( $comment_id );
    36043615                } else {