mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Do secure redirect only for admin destinations. see #7561
git-svn-id: https://develop.svn.wordpress.org/trunk@8730 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -423,7 +423,7 @@ default:
|
||||
if ( isset( $_REQUEST['redirect_to'] ) ) {
|
||||
$redirect_to = $_REQUEST['redirect_to'];
|
||||
// Redirect to https if user wants ssl
|
||||
if ( $secure_cookie )
|
||||
if ( $secure_cookie && false !== strpos($redirect_to, 'wp-admin') )
|
||||
$redirect_to = preg_replace('|^http://|', 'https://', $redirect_to);
|
||||
} else {
|
||||
$redirect_to = admin_url();
|
||||
|
||||
Reference in New Issue
Block a user