WordPress.org

Make WordPress Core

Changeset 4969


Ignore:
Timestamp:
03/06/07 17:03:50 (7 years ago)
Author:
ryan
Message:

Ignore redirect_to if already logged in.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-login.php

    r4953 r4969  
    290290    $using_cookie = FALSE; 
    291291 
    292     if ( !isset( $_REQUEST['redirect_to'] ) ) 
     292    if ( !isset( $_REQUEST['redirect_to'] ) || is_user_logged_in() ) 
    293293        $redirect_to = 'wp-admin/'; 
    294294    else 
Note: See TracChangeset for help on using the changeset viewer.