[buddypress-trac] [BuddyPress] #2642: Updating profile in back-end appends characters to user_nicename

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Tue Oct 12 18:48:12 UTC 2010


#2642: Updating profile in back-end appends characters to user_nicename
-------------------------+--------------------------------------------------
 Reporter:  jfarthing84  |       Owner:                   
     Type:  defect       |      Status:  new              
 Priority:  normal       |   Milestone:  1.3              
Component:  Core         |    Keywords:  reporter-feedback
-------------------------+--------------------------------------------------

Comment(by jfarthing84):

 I figured it out. Try it with a user_login with spaces. You will see the
 results I reported.

 It is caused by bp_core_strip_username_spaces() being applied to the
 "pre_user_login" filter.

 Then, within wp_insert_user(), it checks for an existing user_nicename
 that doesn't match with the user_login being updated. In this case, BP
 changes the user_login from it's real value. So, wordpress thinks that the
 nicename already exists for a different user and appends a suffix.

-- 
Ticket URL: <https://trac.buddypress.org/ticket/2642#comment:10>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list