Make WordPress Core

Opened 3 years ago

Closed 2 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:


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

Download all attachments as: .zip

Change History (4)

trepmal3 years ago

Display error in the admin chrome

comment:1 trepmal3 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.

comment:2 nacin2 years ago

  • Milestone changed from Awaiting Review to 3.3

comment:3 ryan2 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.