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:
parent
beaa2c1dfe
commit
9efbe4150c
@ -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'];
|
||||
|
Loading…
Reference in New Issue
Block a user