mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-09 11:40:04 +00:00
Force reauth when auth_redirect() redirects to login. see #12142
git-svn-id: https://develop.svn.wordpress.org/trunk@14556 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -799,7 +799,7 @@ function auth_redirect() {
|
||||
|
||||
$redirect = ( strpos($_SERVER['REQUEST_URI'], '/options.php') && wp_get_referer() ) ? wp_get_referer() : $proto . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
|
||||
|
||||
$login_url = wp_login_url($redirect);
|
||||
$login_url = wp_login_url($redirect, true);
|
||||
|
||||
wp_redirect($login_url);
|
||||
exit();
|
||||
|
||||
Reference in New Issue
Block a user