Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#18935 closed defect (bug) (fixed)

"My Sites" for Super Admins with no sites triggers wp_die()

Reported by: trepmal Owned by: ryan
Milestone: 3.3 Priority: normal
Severity: normal Version: 3.3
Component: Multisite Keywords: has-patch
Focuses: Cc:

Description

If a Super Admin is not a user on any specific site, clicking on My Sites in the admin bar takes the SA to a WordPress error page ("You must be a member of at least one site to use this page.")

Attachments (1)

my-sites.diff (1004 bytes) - added by trepmal 10 years ago.
Display error in the admin chrome

Download all attachments as: .zip

Change History (4)

@trepmal
10 years ago

Display error in the admin chrome

#1 @trepmal
10 years ago

Patch moves message so that it is displayed inside the admin chrome so the SA can still access the menu without going back.

#2 @nacin
10 years ago

  • Milestone changed from Awaiting Review to 3.3

#3 @ryan
10 years ago

  • Owner set to ryan
  • Resolution set to fixed
  • Status changed from new to closed

In [19323]:

Don't die in my-sites.php if the user has no sites. Intead, display message within admin chrome. Props trepmal. fixes #18935

Note: See TracTickets for help on using tickets.