Make sure redirect_to gets set.
git-svn-id: https://develop.svn.wordpress.org/trunk@2024 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4553f8cef0
commit
939103cb50
@ -108,7 +108,7 @@ default:
|
||||
|
||||
$user_login = '';
|
||||
$user_pass = '';
|
||||
$redirect_to = '';
|
||||
$redirect_to = 'wp-admin/';
|
||||
$using_cookie = false;
|
||||
|
||||
if( !empty($_POST) ) {
|
||||
@ -122,7 +122,6 @@ default:
|
||||
$user_pass = $_COOKIE['wordpresspass_' . COOKIEHASH];
|
||||
$using_cookie = true;
|
||||
}
|
||||
$redirect_to = 'wp-admin/';
|
||||
}
|
||||
|
||||
if ($user_login && $user_pass) {
|
||||
|
Loading…
Reference in New Issue
Block a user