[buddypress-trac] [BuddyPress] #5185: BP Signup - spaces in username issue

buddypress-trac noreply at wordpress.org
Thu Nov 14 15:43:44 UTC 2013

#5185: BP Signup - spaces in username issue
 Reporter:  hnla                            |       Owner:  boonebgorges
     Type:  enhancement                     |      Status:  closed
 Priority:  normal                          |   Milestone:  1.9
Component:  Core                            |     Version:
 Severity:  normal                          |  Resolution:  fixed
 Keywords:  has-patch needs-testing commit  |
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


 In [changeset:"7570"]:
 #!CommitTicketReference repository="" revision="7570"
 Remove BuddyPress's restriction spaces in user_login

 BuddyPress has historically enforced a no-spaces rule on user_login during
 user registration. Originally this was rooted in WPMU's own peculiar
 restrictions, and when the MU requirement was dropped, the same
 were carried over to WordPress Single.

 However, these restrictions have caused various problems. BP enforced the
 spaces" rule during registration by simply swapping out spaces with
 hyphens and
 not telling users. This caused immense confusion. Moreover, the
 caused problems when bypassing BP's native user registration, as when
 integrating with an external authentication service; these external
 *can* sometimes have spaces, and certain areas of BuddyPress were not
 to deal with them.

 This changeset removes the no-spaces restriction from BuddyPress, and
 off user_login validation to WordPress Multisite when possible (meaning
 that on
 MS, spaces will still not be allowed during native registration). It also
 makes the necessary adjustments throughout BuddyPress to ensure that
 in user_login will not break related functionality. On a normal setup, BP
 WP) only use user_login for authentication, but several changes were
 to account for "username compatibility mode", where the user_login is

 - Refactor the way that activity @-mentions work in username compatibility
   mode. We now have functions for converting user IDs to "mentionname"
 (and vice
   versa) which will produce @-mention-safe versions of user_nicename or
   user_login, as appropriate.
 - Use proper URL encoding when building and parsing URLs that contain
   when compatibility mode is enabled.
 - Fix private messaging autocomplete to work with spaces.

 See #4622

 Fixes #5185

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

More information about the buddypress-trac mailing list