Make sure redirect_to gets set.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2024 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5f0a8d8186
commit
a8fa06212e
|
@ -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