Skip to content

Fix. Code. Bug fixes after WP 7.0 update#799

Open
AntonV1211 wants to merge 1 commit into
devfrom
fix_error_php_av
Open

Fix. Code. Bug fixes after WP 7.0 update#799
AntonV1211 wants to merge 1 commit into
devfrom
fix_error_php_av

Conversation

@AntonV1211
Copy link
Copy Markdown
Contributor

Copilot AI review requested due to automatic review settings May 22, 2026 09:33
@AntonV1211 AntonV1211 requested review from Glomberg, alexander-b-clean and alexandergull and removed request for alexander-b-clean May 22, 2026 09:33
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Copy Markdown

codecov Bot commented May 22, 2026

Codecov Report

❌ Patch coverage is 14.28571% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 25.86%. Comparing base (3fb5257) to head (c7695e1).
⚠️ Report is 2 commits behind head on dev.

Files with missing lines Patch % Lines
cleantalk.php 0.00% 5 Missing ⚠️
lib/Cleantalk/Common/Enqueue/Enqueue.php 50.00% 1 Missing ⚠️

❌ 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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants