Skip to content

4.2.2 - WordPress HTTP API functions instead of CURL and web_hook_han…#45

Open
committedpro wants to merge 1 commit into
masterfrom
Use_Wordpress_HTTP_Methods_Instead_Of_Curl
Open

4.2.2 - WordPress HTTP API functions instead of CURL and web_hook_han…#45
committedpro wants to merge 1 commit into
masterfrom
Use_Wordpress_HTTP_Methods_Instead_Of_Curl

Conversation

@committedpro

@committedpro committedpro commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator

= 4.2.2 =

  • Jun 15, 2026
  • Replaced direct cURL requests with WordPress HTTP API functions.
  • Updated the webhook to allow subsequent execution when the order status is neither Processing nor Completed.
  • Applied Plugin Check (PCP) recommendations for version 2.0.0
  • Plugin tested on WooCommerce 10.8.1
  • Plugin tested on WordPress 7.0

Summary by cubic

Replaced direct cURL calls with WordPress HTTP API to improve compatibility, reliability, and error handling. Updated the webhook to rerun unless the order is already processing or completed, and bumped plugin requirements and tested versions.

  • Refactors

    • Switched all API requests to wp_remote_request; removed vendor CurlEmulator.php.
    • Reworked Request.php to use WP HTTP helpers and array-based headers; centralized error handling.
    • Replaced parse_url with wp_parse_url.
    • Updated metadata: version 4.2.2, WP ≥ 5.0.0, PHP ≥ 7.2, WC tested up to 10.8.1, WP tested up to 7.0.
  • Bug Fixes

    • Webhook now exits only for orders in processing or completed, allowing subsequent executions in other states.

Written for commit 7abeb81. Summary will update on new commits.

Review in cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

1 issue found across 6 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="Readme.md">

<violation number="1" location="Readme.md:9">
P2: Requires PHP 7.2 is too low for the declared Tested up to versions. WP 7.0 requires PHP 7.4+ and WC 10.8's legacy floor is PHP 7.4+. A user on PHP 7.2-7.3 cannot run the tested platforms.</violation>
</file>

Reply with feedback, questions, or to request a fix.

Fix all with cubic | Re-trigger cubic

Comment thread Readme.md
Requires at least: 5.0.0
Tested up to: 7.0
Stable tag: 4.2.2
Requires PHP: 7.2

@cubic-dev-ai cubic-dev-ai Bot Jun 14, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2: Requires PHP 7.2 is too low for the declared Tested up to versions. WP 7.0 requires PHP 7.4+ and WC 10.8's legacy floor is PHP 7.4+. A user on PHP 7.2-7.3 cannot run the tested platforms.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At Readme.md, line 9:

<comment>Requires PHP 7.2 is too low for the declared Tested up to versions. WP 7.0 requires PHP 7.4+ and WC 10.8's legacy floor is PHP 7.4+. A user on PHP 7.2-7.3 cannot run the tested platforms.</comment>

<file context>
@@ -3,12 +3,12 @@
+Requires at least: 5.0.0
+Tested up to: 7.0
+Stable tag: 4.2.2
+Requires PHP: 7.2
 WC requires at least: 2.4
-WC tested up to: 10.3.5
</file context>
Suggested change
Requires PHP: 7.2
Requires PHP: 7.4
Fix with cubic

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.

1 participant