Use get_dashboard_url() to redirect to the active blog if the user doesn't have access to the current blog. fixes #16297
git-svn-id: http://svn.automattic.com/wordpress/trunk@17367 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9400a59207
commit
186e70bcca
|
@ -588,7 +588,7 @@ default:
|
|||
if ( is_multisite() && !get_active_blog_for_user($user->id) )
|
||||
$redirect_to = user_admin_url();
|
||||
elseif ( is_multisite() && !$user->has_cap('read') )
|
||||
$redirect_to = user_admin_url();
|
||||
$redirect_to = get_dashboard_url( $user->id );
|
||||
elseif ( !$user->has_cap('edit_posts') )
|
||||
$redirect_to = admin_url('profile.php');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue