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:
parent
682fcc5d4a
commit
e3782a3e2b
|
@ -289,7 +289,7 @@ default:
|
||||||
$user_pass = '';
|
$user_pass = '';
|
||||||
$using_cookie = FALSE;
|
$using_cookie = FALSE;
|
||||||
|
|
||||||
if ( !isset( $_REQUEST['redirect_to'] ) )
|
if ( !isset( $_REQUEST['redirect_to'] ) || is_user_logged_in() )
|
||||||
$redirect_to = 'wp-admin/';
|
$redirect_to = 'wp-admin/';
|
||||||
else
|
else
|
||||||
$redirect_to = $_REQUEST['redirect_to'];
|
$redirect_to = $_REQUEST['redirect_to'];
|
||||||
|
|
Loading…
Reference in New Issue