Repository navigation
New. Plugins page. Show changelog in the update notice. - #901
Conversation
There was a problem hiding this comment.
Warning
- Copilot's review of this pull request may be incomplete because some of the changed files are excluded by your Copilot content exclusion settings. See Excluding content from Copilot for details.
Copilot review overview
🟡 Changes recommended
It can break PHP 5.6 admin requests and may display changelogs for the wrong plugin version.
Review effort: Balanced
Findings: 1
Open (2)
What changed in this PR
Adds update changelogs to the native WordPress plugin update notice.
Changes:
- Fetches and caches changelogs from WordPress.org or GitHub.
- Sanitizes and renders changelog markup.
- Registers the feature in the admin area.
| File | Description |
|---|---|
lib/Cleantalk/Common/AbstractUpdateChangelogNotice.php |
Implements changelog retrieval, parsing, caching, and injection. |
lib/Cleantalk/ApbctWP/UpdateChangelogNotice.php |
Configures the feature for CleanTalk. |
lib/Cleantalk/ApbctWP/Escape.php |
Adds changelog-specific KSES markup. |
inc/cleantalk-admin.php |
Registers the changelog notice. |
tests/ApbctWP/EscapeTest.php |
Test changes excluded from review. |
tests/Common/AbstractUpdateChangelogNoticeTest.php |
Test changes excluded from review. |
Files excluded by content exclusion policy (2)
- tests/ApbctWP/EscapeTest.php
- tests/Common/AbstractUpdateChangelogNoticeTest.php
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Codecov Report❌ Patch coverage is
❌ Your patch check has failed because the patch coverage (20.97%) is below the target coverage (70.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## dev #901 +/- ##
============================================
- Coverage 32.03% 31.96% -0.08%
- Complexity 6781 6873 +92
============================================
Files 292 294 +2
Lines 26775 26980 +205
============================================
+ Hits 8578 8623 +45
- Misses 18197 18357 +160 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
0b4155e to
772b91a
Compare


https://app.doboard.com/1/task/46119