Comment Moderation Exp: Add toggle to enable/disable guest comments automatic moderation#751
Conversation
- set to true by default
- ensures the custom setting fields are not too closely bunched to the experiment description
…ion analysis - checks for analysis skip when toggle is enabled and when disabled
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
@Intenzi Can you look to clean up the merge conflicts here before I test/review? Thanks! |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #751 +/- ##
=============================================
- Coverage 76.24% 76.04% -0.21%
- Complexity 1765 1770 +5
=============================================
Files 85 85
Lines 7591 7618 +27
=============================================
+ Hits 5788 5793 +5
- Misses 1803 1825 +22
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…utomatic moderation (#751) Added - New setting to choose if guest comments should be moderated or not, defaulting to yes. Co-authored-by: Intenzi <[email protected]> Co-authored-by: dkotter <[email protected]>
What?
Closes #750
Adds a checkbox in Comment Moderation Experiment settings.
This allows enabling/disabling of the comment moderation flow (AI sentiment, toxicity analysis) when the comment user is anonymous.
Set to
true/Enabled by default.Why?
This is in continuation to #516 (comment)
It solves the problem of AI analysis being run on unwanted guest users/ spam of guest comments that can cause a Denial Of Wallet attack.
Additionally enables customization to moderation flow for the website's comment moderators.
How?
moderate_guestsas a boolean field. Enabled by default.Content_Classification.phpfor settings registration.Use of AI Tools
AI assistance: Yes
Tool(s): Antigravity
Model(s): Gemini 3.5 Flash (Low)
Used for: Identifying the css file for the css fix, adding the integration tests.
Testing Instructions
a> With Moderate Guest Comments settings field toggled on:
b> Turn off the Automatically moderate guest comments settings field by clicking on it:
Screenshots or screencast
New

Automatically moderate guest commentssettings field enabled by default:The setting field, toggled off:

Comments added when the setting was toggled off, on.

Changelog Entry