Make WordPress Core

Opened 6 years ago

Last modified 6 years ago

#43601 new enhancement

Improve error messaging when activating multisite users

Reported by: bamadesigner's profile bamadesigner Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Users Keywords: has-patch
Focuses: multisite Cc:


We had a user on a multisite network try to activate their account and the only error message you get it "Could not create user". This is not helpful. We had to go digging through core to figure out why.

Right now it uses wpmu_create_user() which returns false if wp_create_user() returns an error, instead of returning the error message from wp_create_user(). An easy improvement would be for wpmu_create_user() to return this error message instead.

I've created a patch for a starting point. Will involve discussion over how much we want to update messaging for other interactions that use wpmu_create_user().

Attachments (1)

for43601.diff (4.1 KB) - added by bamadesigner 6 years ago.
Patch for ticket 43601

Download all attachments as: .zip

Change History (4)

6 years ago

Patch for ticket 43601

#1 @bamadesigner
6 years ago

  • Focuses multisite added

#2 @mukesh27
6 years ago

  • Component changed from General to Users
  • Keywords has-patch added

#3 @pento
6 years ago

  • Version trunk deleted
Note: See TracTickets for help on using tickets.