Changeset 18504 for trunk/wp-login.php
- Timestamp:
- 08/04/2011 03:09:27 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-login.php
r18460 r18504 587 587 if ( ( empty( $redirect_to ) || $redirect_to == 'wp-admin/' || $redirect_to == admin_url() ) ) { 588 588 // 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. 589 if ( is_multisite() && !get_active_blog_for_user($user-> id) && !is_super_admin( $user->id) )589 if ( is_multisite() && !get_active_blog_for_user($user->ID) && !is_super_admin( $user->ID ) ) 590 590 $redirect_to = user_admin_url(); 591 591 elseif ( is_multisite() && !$user->has_cap('read') ) 592 $redirect_to = get_dashboard_url( $user-> id);592 $redirect_to = get_dashboard_url( $user->ID ); 593 593 elseif ( !$user->has_cap('edit_posts') ) 594 594 $redirect_to = admin_url('profile.php');
Note: See TracChangeset
for help on using the changeset viewer.