Fix: Use wp_safe_redirect() instead of wp_redirect()#313
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughTwo redirect calls were changed from ChangesSafe Redirect Adoption
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 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 |
Resolves two
WordPress.Security.SafeRedirect.wp_redirect_wp_redirectwarnings flagged by PHPCS.src/Admin/Actions.php:83— wizard redirect now useswp_safe_redirect()src/Ajax.php:162— Ajax redirect now useswp_safe_redirect()Both calls are already followed by
exit;, so no other changes were required. No functional changes expected since both URLs resolve to local admin URLs.Summary by CodeRabbit