Honor redirect_to for logged in users. Props DD32. fixes #6385
git-svn-id: https://develop.svn.wordpress.org/trunk@7524 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ac6aecf3ce
commit
c6fc5bb4df
@ -341,10 +341,10 @@ break;
|
||||
|
||||
case 'login' :
|
||||
default:
|
||||
if ( !isset( $_REQUEST['redirect_to'] ) || is_user_logged_in() )
|
||||
$redirect_to = 'wp-admin/';
|
||||
else
|
||||
if ( isset( $_REQUEST['redirect_to'] ) )
|
||||
$redirect_to = $_REQUEST['redirect_to'];
|
||||
else
|
||||
$redirect_to = 'wp-admin/';
|
||||
|
||||
$user = wp_signon();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user