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

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Fri Jun 1 10:42:40 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:                |

Comment (by boonebgorges):

 By default (ie not in compatibility mode), URLs are built out of
 user_nicename. My guess is that the script you're using to create users is
 putting display names in the user_nicename field (in wp_users). This is a
 bad idea: user_nicename is supposed to be a unique, URL-friendly version
 of the user_login. See https://core.trac.wordpress.org/browser/tags/3.3.2

 If I'm right, then you'll probably need to do the following:
 1) Modify your import script so that it enforces user_nicename rules, or
 better yet, just uses wp_insert_user() instead of INSERTing directly to
 the DB; and
 2) Modify your existing users' user_nicename fields so that they're valid.

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

More information about the buddypress-trac mailing list