Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#18935 closed defect (bug) (fixed)

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

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

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 15 years ago.
Display error in the admin chrome

Download all attachments as: .zip

Change History (4)

@trepmal
15 years ago

Display error in the admin chrome

#1 @trepmal
15 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
15 years ago

  • Milestone Awaiting Review → 3.3

#3 @ryan
15 years ago

  • Owner set to ryan
  • Resolution → fixed
  • Status new → 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.