Ignore redirect_to if already logged in.

git-svn-id: https://develop.svn.wordpress.org/trunk@4969 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-03-06 17:03:50 +00:00
parent beaa2c1dfe
commit 9efbe4150c
1 changed files with 1 additions and 1 deletions

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'];