Honor redirect_to for logged in users. Props DD32. fixes #6385
git-svn-id: http://svn.automattic.com/wordpress/trunk@7524 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
95672cb4a2
commit
5d7980a249
|
@ -341,10 +341,10 @@ break;
|
||||||
|
|
||||||
case 'login' :
|
case 'login' :
|
||||||
default:
|
default:
|
||||||
if ( !isset( $_REQUEST['redirect_to'] ) || is_user_logged_in() )
|
if ( isset( $_REQUEST['redirect_to'] ) )
|
||||||
$redirect_to = 'wp-admin/';
|
|
||||||
else
|
|
||||||
$redirect_to = $_REQUEST['redirect_to'];
|
$redirect_to = $_REQUEST['redirect_to'];
|
||||||
|
else
|
||||||
|
$redirect_to = 'wp-admin/';
|
||||||
|
|
||||||
$user = wp_signon();
|
$user = wp_signon();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue