WordPress.org

Make WordPress Core

Opened 15 months ago

Last modified 5 months ago

#43601 new enhancement

Improve error messaging when activating multisite users

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

Description

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 15 months ago.
Patch for ticket 43601

Download all attachments as: .zip

Change History (4)

@bamadesigner
15 months ago

Patch for ticket 43601

#1 @bamadesigner
15 months ago

  • Focuses multisite added

#2 @mukesh27
15 months ago

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

#3 @pento
5 months ago

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