#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 |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.2 |
| Component: | Networks and Sites | Version: | 4.2 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | administration, multisite |
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
@
12 years ago
- Keywords dev-feedback removed
- Milestone Awaiting Review → 4.2
That's a nice one. I'll take a closer look this evening, but the patch makes sense.
#3
@
12 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.
#5
@
12 years ago
@jeremyfelt Doesn't look 31314.2.diff a bit cleaner?
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Wrap the
add_menucall inswitch_to_blog