From 186e70bcca86d15342e97d41819bc68ca78180b0 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 26 Jan 2011 16:35:04 +0000 Subject: [PATCH] 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 --- wp-login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-login.php b/wp-login.php index 182169d8fa..1858b9e4c2 100644 --- a/wp-login.php +++ b/wp-login.php @@ -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'); }