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:
rboren 2004-12-31 01:22:42 +00:00
parent 5f0a8d8186
commit a8fa06212e
1 changed files with 1 additions and 2 deletions

View File

@ -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) {