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

WordPress Trac noreply at wordpress.org
Tue Jul 14 13:39:14 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 dev-feedback  |     Focuses:
--------------------------------------+------------------------------

Comment (by ruud@…):

 current workaround in project:

 {{{
 add_filter( 'pre_user_nicename', 'pre_user_nicename_filter', 10, 1 );
 function pre_user_nicename_filter( $user_nicename ) {

         //truncate $user_nicename to 47 chars length to allow for double-
 digit unique value suffixing and still fit into 50 chars database column
         $user_nicename = substr( $user_nicename, 0, 47 );

         return $user_nicename;
 }
 }}}

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


More information about the wp-trac mailing list