WordPress Fundamental — Medium
Key points
- wp_safe_redirect() protects against open redirect vulnerabilities
- wp_redirect() does not validate the destination URL
- Security is a key consideration when choosing between the two functions
Ready to go further?
Related questions
