[buddypress-trac] [BuddyPress] #4216: bp_core_redirect ignores spaces in user domains.

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Tue Jun 12 07:21:36 UTC 2012


#4216: bp_core_redirect ignores spaces in user domains.
-------------------------------+--------------------
 Reporter:  DennisSmolek       |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  1.6
Component:  Messaging          |     Version:  1.5.5
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+--------------------

Comment (by DennisSmolek):

 It actually uses wp_insert_user.

 I do a line by line file read which generates an array in a loop, then it
 creates this array:

 {{{
 $userdata = array(
                 'user_pass' => $passwd,
                 'user_login' => $shopper_data[21],
                 'user_nicename' => $shopper_data[56],
                 'user_email' => $shopper_data[21],
                 'display_name' => $shopper_data[56],
                 'first_name' => $shopper_data[22],
                 'last_name' => $shopper_data[27],
                 'description' => $shopper_data[35]
                 );
 }}}

 Then does other junk but eventually:


 {{{
 $user_id = wp_insert_user($userdata);
 }}}

 $shopper_data[56] is the FULLNAME field from the export, so John E Doe or
 John Doe.

 Now I'm not sure what user_nicename's other uses are, but I'm considering
 switching to using a unique number. It's ok if the urls are numbers, the
 shoppers all know themselves as numbers.
 Because members/john doe and members/john doe are going to start
 conflicting and I don't know how that will work out.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4216#comment:7>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list