WordPress.org

Make WordPress Core

Changeset 5023


Ignore:
Timestamp:
03/10/2007 08:35:57 PM (11 years ago)
Author:
ryan
Message:

Ignore redirect_to if already logged in.

Location:
branches
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-login.php

    r4656 r5023  
    167167    $user_pass = '';
    168168    $using_cookie = false;
    169     if ( !isset( $_REQUEST['redirect_to'] ) )
     169    if ( !isset( $_REQUEST['redirect_to'] ) || is_user_logged_in() )
    170170        $redirect_to = 'wp-admin/';
    171171    else
  • branches/2.1/wp-login.php

    r4656 r5023  
    287287    $using_cookie = FALSE;
    288288
    289     if ( !isset( $_REQUEST['redirect_to'] ) )
     289    if ( !isset( $_REQUEST['redirect_to'] ) || is_user_logged_in() )
    290290        $redirect_to = 'wp-admin/';
    291291    else
Note: See TracChangeset for help on using the changeset viewer.