Ignore redirect_to if already logged in.

git-svn-id: http://svn.automattic.com/wordpress/trunk@4969 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-03-06 17:03:50 +00:00
parent 682fcc5d4a
commit e3782a3e2b

View File

@ -289,7 +289,7 @@ default:
$user_pass = '';
$using_cookie = FALSE;
if ( !isset( $_REQUEST['redirect_to'] ) )
if ( !isset( $_REQUEST['redirect_to'] ) || is_user_logged_in() )
$redirect_to = 'wp-admin/';
else
$redirect_to = $_REQUEST['redirect_to'];