Repository navigation
Use GET request to download theme from underscores.me - #398
Conversation
underscores.me now responds with 403 to all POST requests, but still serves the generated theme zip when the same form fields are passed as query arguments. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013rF1yyKWPmtBrXEVSrPJUW
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
The
wp scaffold _sBehat scenarios have started failing withError: Couldn't create theme (received 403 response).(example run).underscores.me now responds with
403 Access Deniedto every POST request (even an empty one, regardless of User-Agent/Referer/Origin headers), but it still serves the generated theme zip when the same form fields are sent as query arguments via GET:I also confirmed that the
underscoresme_sassandunderscoresme_woocommerceoptions still work via GET (the zip containssass/and the WooCommerce files).This PR switches
wp_remote_post()towp_remote_get()and passes the existing form fields throughadd_query_arg( urlencode_deep( $body ), $url ). No test changes are needed: the existing scenarios cover this.Generated by Claude Code
Summary by CodeRabbit