disable-pb-tb.ag#806
Open
alexandergull wants to merge 18 commits into
Open
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## dev #806 +/- ##
============================================
+ Coverage 26.05% 26.14% +0.09%
- Complexity 5621 5633 +12
============================================
Files 264 267 +3
Lines 24126 24171 +45
============================================
+ Hits 6285 6319 +34
- Misses 17841 17852 +11 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR introduces an optional setting to disable incoming Pingback and Trackback requests (commonly abused for spam) while keeping XML-RPC available for other integrations.
Changes:
- Added a new plugin setting (
wp__disable_pingback_and_trackback) and exposed it in the admin settings UI with a long description view. - Implemented
PingbackHandler(XML-RPC pingback method interception) andTrackbackHandler(blocks trackback endpoint processing). - Added PHPUnit coverage for
PingbackHandler.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/ApbctWP/PingbackTrackback/TestPingbackHandler.php | Adds unit tests validating pingback method replacement and error response. |
| lib/Cleantalk/ApbctWP/State.php | Introduces default setting flag for disabling pingbacks/trackbacks. |
| lib/Cleantalk/ApbctWP/PingbackTrackback/TrackbackHandler.php | Adds hook-based trackback blocking handler (currently has PHP compatibility/callback signature issues). |
| lib/Cleantalk/ApbctWP/PingbackTrackback/SettingsView.php | Provides title/description/long description text for the new setting. |
| lib/Cleantalk/ApbctWP/PingbackTrackback/PingbackHandler.php | Adds XML-RPC pingback blocking handler returning IXR_Error. |
| inc/cleantalk-settings.php | Registers the new setting field and its long-description payload. |
| cleantalk.php | Instantiates pingback/trackback handlers on init when the new setting is enabled. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Glomberg
approved these changes
Jun 5, 2026
svfcode
approved these changes
Jun 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://app.doboard.com/1/task/50454