fix: use site-aware wp-cron URL#1351
Conversation
|
Linter diff in the way? Review this PR in Change Stack to focus on meaningful changes and expand context only when needed. Caution Review failedPull request was closed or merged during review 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 (1)
📝 WalkthroughWalkthroughThis single-line change updates the cron endpoint URL provided to the thank-you page frontend. The client-side JavaScript now receives the direct Changeswp-cron Endpoint Localization
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 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
ContextThe previous AJAX URL returned WordPress's default admin-ajax Verification
aidevops.sh v3.20.13 plugin for OpenCode v1.15.13 with gpt-5.5 Merged via PR #1351 to main. |
Summary
wu_wp_cronAJAX action to the realwp-cron.php?doing_wp_cronendpointsite_url()so Bedrock/subdirectory WordPress installs resolve to the core path, e.g./wp/wp-cron.phpContext
The previous AJAX URL returned WordPress's default admin-ajax
0response with HTTP 400 because nowu_wp_cronaction is registered.home_url()would still fail in this install because it resolves to the public root, not the WordPress core directory.Verification
php -l inc/ui/class-thank-you-element.phpvendor/bin/phpcs inc/ui/class-thank-you-element.phpwp --path=site/web/wp --url=https://sdaiagent.com eval 'echo site_url("wp-cron.php?doing_wp_cron") . "\n";'→https://sdaiagent.com/wp/wp-cron.php?doing_wp_croncurl -sk -o /dev/null -w '%{http_code} %{size_download}\n' 'https://sdaiagent.com/wp/wp-cron.php?doing_wp_cron'→200 0For #1241
aidevops.sh v3.20.13 plugin for OpenCode v1.15.13 with gpt-5.5
Summary by CodeRabbit