[wp-trac] [WordPress Trac] #32222: Silent error on attempt of user creation

WordPress Trac noreply at wordpress.org
Tue Jul 14 11:47:00 UTC 2015


#32222: Silent error on attempt of user creation
--------------------------+------------------------------
 Reporter:  psycleuk      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Database      |     Version:  4.2.1
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+------------------------------
Changes (by ruud@…):

 * keywords:   => needs-patch


Comment:

 Ran into the exact same problem in WP 4.2.2

 Allowing user_login to be 60 characters long and then using is to populate
 another user property (user_nicename) which can be only 50 characters long
 is kind of a problem.

 Should we go for: throwing an error? probably not since allowing 60
 characters for the user_login is perfectly legit.

 Truncating the string used for the user_nicename field is another option,
 however this could lead to 'strange' user_nicename values. To avoid
 strange truncations, this could also be made to keep the user_nicename
 field empty when over 50 chars.

 Adding a user_nicename entry field in the sign-up proces is another
 solution. This however clutters the sign-up proces.

 Having said all this, my choice would be to leave the user_nicename field
 empty when user_login  is over 50 characters.

 Any thoughts?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32222#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list