fix: harden checkout thank-you flow#1418
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThis PR strengthens checkout step-navigation robustness by normalizing missing/unset steps into safe array operations, and detects FrankenPHP runtime to disable incompatible async loopback behavior. Two independent functional changes with no shared logic or dependencies. ChangesCheckout Step Navigation Hardening
FrankenPHP Detection in Async Publishing
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🔨 Build Complete - Ready for Testing!📦 Download Build Artifact (Recommended)Download the zip build, upload to WordPress and test:
🌐 Test in WordPress Playground (Very Experimental)Click the link below to instantly test this PR in your browser - no installation needed! Login credentials: |
Summary
steps === null).Production evidence
JJJ3D441ELand sitecheckout-post1416-20260613000702.humansite.builders.85987, but the thank-you URL returned HTTP 500.array_column(): Argument #1 ($array) must be of type array, null givenininc/checkout/class-checkout.php:3452fromCheckout->is_last_step()during checkout script registration.Verification
php -l inc/checkout/class-checkout.php && php -l inc/models/class-membership.php && php -l tests/WP_Ultimo/Checkout/Checkout_Test.phpvendor/bin/phpcs inc/checkout/class-checkout.php inc/models/class-membership.phpgit diff --checkfirst=yes last=yes next=thank-youwithout fatal.publish_loopback_requests=0 has_scheduled_main=yes.Notes
/tmp/wordpress-tests-lib/includes/functions.phpis missing.tests/WP_Ultimo/Checkout/Checkout_Test.phpreports pre-existing unrelated violations outside the touched lines; production files pass PHPCS.aidevops.sh v3.20.57 plugin for OpenCode v1.17.4 with gpt-5.5
Summary by CodeRabbit
Bug Fixes
Tests