fix: prevent give_payment_note from affecting comment count #3588
The give plugin writes in to wp_comments with a comment_type of 'give_payment_note'
These database entires cause problems on the Wordpress Comments section on the admin site, as they appear in the total comment counts, but not show up due to the non-standard comment-type.
I cannot find any documentation on the purpose of these entries, so I'm unclear as to whether they can be deleted safely.
Ravinderk, thanks for taking the time to look at this.
The issue, which is clearly visible in your video, is that there are 2381 comments in total, but only 1 is shown. The others cannot be seem as they are not real comments.
There is a deeper issue here with using the wp_comments table in this way, and it seems likely this will conflict with other plugins or future updates to that table.
referenced this issue
Aug 9, 2018
modified the milestones:
Sprint: 2018/08/01 - 2018/08/21,
Sprint: 2018/08/22 - 2018/08/22 - 2018/09/04
Aug 22, 2018
@kevinwhoffman While testing this issue and discussion with @ravinderk, it seems that we don't have a filter to exclude the comments count of
Let me know your thoughts.
Slack Chat Summary
Participants: @DevinWalker @kevinwhoffman @ravinderk
@ravinderk Please move forward with the fix to remove old comments only if we can be sure that the comments have been successfully migrated to the custom tables.