diff --git a/wp-login.php b/wp-login.php index b130b364e8..c77d292651 100644 --- a/wp-login.php +++ b/wp-login.php @@ -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();