Make WordPress Core

Ticket #14787: 14787.2.diff

File 14787.2.diff, 590 bytes (added by SergeyBiryukov, 12 years ago)
  • wp-login.php

     
    620620                }
    621621
    622622                if ( ( empty( $redirect_to ) || $redirect_to == 'wp-admin/' || $redirect_to == admin_url() ) ) {
     623                        wp_set_current_user( $user->ID );
     624
    623625                        // If the user doesn't belong to a blog, send them to user admin. If the user can't edit posts, send them to their profile.
    624626                        if ( is_multisite() && !get_active_blog_for_user($user->ID) && !is_super_admin( $user->ID ) )
    625627                                $redirect_to = user_admin_url();