[wp-trac] [WordPress Trac] #43601: Improve error messaging when activating multisite users

WordPress Trac noreply at wordpress.org
Wed Mar 21 16:15:58 UTC 2018


#43601: Improve error messaging when activating multisite users
--------------------------+-----------------------------
 Reporter:  bamadesigner  |      Owner:
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 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().

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43601>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list