From 900cee7dc93dd1a81e859696f50175b62885b535 Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@17367 602fd350-edb4-49c9-b593-d223f7449a82 --- 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'); }