Fix. Code. Bug fixes after WP 7.0 update#799
Conversation
There was a problem hiding this comment.
Pull request overview
This PR addresses regressions after the WordPress 7.0 update by tightening validation around asset enqueueing and improving/normalizing remote-call plugin install/activation error reporting.
Changes:
- Validate that an enqueue handle is not empty before registering/enqueueing assets.
- Simplify
plugins_api()error handling to always surface the WP_Error message. - Refine plugin activation error handling to separate WP_Error failures from falsy non-error results.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| lib/Cleantalk/Common/Enqueue/Enqueue.php | Adds a guard to prevent enqueueing/registering assets with an empty handle. |
| cleantalk.php | Adjusts remote-call install/activate flows to report more specific errors and simplify branching. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report❌ Patch coverage is
❌ Your patch check has failed because the patch coverage (14.28%) 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 #799 +/- ##
=========================================
Coverage 25.86% 25.86%
- Complexity 5606 5607 +1
=========================================
Files 264 264
Lines 24126 24125 -1
=========================================
+ Hits 6240 6241 +1
+ Misses 17886 17884 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
https://app.doboard.com/1/task/49938