Permalink
Browse files

Ignore redirect_to if already logged in.

git-svn-id: http://svn.automattic.com/wordpress/branches/2.1@5023 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent 21d3d46 commit f54b5cfac962f0394df2e64c2eb22a6b7e7a8ffc ryan committed Mar 10, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 wp-login.php
View
@@ -286,7 +286,7 @@ function focusit() {
$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'];

0 comments on commit f54b5cf

Please sign in to comment.