summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-admin/menu.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-inst/wp-admin/menu.php')
-rw-r--r--wp-inst/wp-admin/menu.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/wp-inst/wp-admin/menu.php b/wp-inst/wp-admin/menu.php
index 0b18a73..8e420a7 100644
--- a/wp-inst/wp-admin/menu.php
+++ b/wp-inst/wp-admin/menu.php
@@ -83,6 +83,9 @@ if (! user_can_access_admin_page()) {
if( $primary_blog ) {
header( "Location: " . get_blog_option( $primary_blog, "siteurl" ) . "wp-admin/" );
exit;
+ } else {
+ header( "Location: http://{$current_user->data->user_login}.wordpress.com/wp-admin/" );
+ exit;
}
die( __('You do not have sufficient permissions to access this page.') );
}