4.2.2 - WordPress HTTP API functions instead of CURL and web_hook_han…#45
Open
committedpro wants to merge 1 commit into
Open
4.2.2 - WordPress HTTP API functions instead of CURL and web_hook_han…#45committedpro wants to merge 1 commit into
committedpro wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
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
| Requires at least: 5.0.0 | ||
| Tested up to: 7.0 | ||
| Stable tag: 4.2.2 | ||
| Requires PHP: 7.2 |
There was a problem hiding this comment.
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 |
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.
= 4.2.2 =
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
wp_remote_request; removed vendorCurlEmulator.php.Request.phpto use WP HTTP helpers and array-based headers; centralized error handling.parse_urlwithwp_parse_url.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
processingorcompleted, allowing subsequent executions in other states.Written for commit 7abeb81. Summary will update on new commits.