Ticket #14787: 14787.2.diff
File 14787.2.diff, 590 bytes (added by , 13 years ago) |
---|
-
wp-login.php
620 620 } 621 621 622 622 if ( ( empty( $redirect_to ) || $redirect_to == 'wp-admin/' || $redirect_to == admin_url() ) ) { 623 wp_set_current_user( $user->ID ); 624 623 625 // 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. 624 626 if ( is_multisite() && !get_active_blog_for_user($user->ID) && !is_super_admin( $user->ID ) ) 625 627 $redirect_to = user_admin_url();