#31314 closed defect (bug) (fixed)
My Sites admin bar link broken when on blogs you have no role on
Reported by: | simonwheatley | Owned by: | jeremyfelt |
---|---|---|---|
Milestone: | 4.2 | Priority: | normal |
Severity: | normal | Version: | 4.2 |
Component: | Networks and Sites | Keywords: | has-patch |
Focuses: | administration, multisite | Cc: |
Description
Steps to reproduce:
- Create a WordPress multisite
- Create a new user
- Create two sites
- Give the user access to site 1, but not site 2
- Log in as the user
- Visit site 2
- Click on "My Sites" in the admin bar
- Error message about not having enough privilege
Attachments (2)
Change History (8)
#2
@
10 years ago
- Keywords dev-feedback removed
- Milestone changed from Awaiting Review to 4.2
That's a nice one. I'll take a closer look this evening, but the patch makes sense.
#3
@
10 years ago
Confirmed. This definitely leads to a confusing interface for a user. I know I've been annoyed by this screen before. :)
We can use $wp_admin_bar->user->active_blog->blog_id
instead, as it's populated properly when the admin bar is first initialized.
#4
@
10 years ago
- Owner set to jeremyfelt
- Resolution set to fixed
- Status changed from new to closed
In 31445:
#5
@
10 years ago
@jeremyfelt Doesn't look 31314.2.diff a bit cleaner?
Note: See
TracTickets for help on using
tickets.
Wrap the
add_menu
call inswitch_to_blog