Skip to:
Content
Pages
Categories
Search
Top
Bottom

Usernames with dots don’t work anymore

  • @sospetto

    Participant

    Hiya guys, I just noticed that usernames with dots don’t work anymore; the old trick from here http://buddypress.trac.wordpress.org/ticket/1135 to insert

    ’define( ‘BP_ENABLE_USERNAME_COMPATIBILITY_MODE’, true );’

    in wp-config.php or bp-custom.php does not work any longer. Any ideas why that is and how this can be changed?

Viewing 1 replies (of 1 total)
  • @sospetto

    Participant

    Found it. As per the discussion here:

    https://core.trac.wordpress.org/ticket/17239

    dots in usernames are not allowed in WordPress 3.2.(1). I have changed that now in my install by modifying the function wpmu_validate_user_signup in /wp-includes/ms-functions.php in line 524 from

    preg_match( ‘/[a-z0-9]+/’, $user_name, $maybe );

    to

    preg_match( ‘/[a-z0-9.]+/’, $user_name, $maybe );

    I don’t like having to modify a core file, but I like even less that in ticket #17239 it was just decided to disallow dots in usernames. For network sites, which often are associated with username databases, which in turn are often associated with firstname.surname server accounts and email addresses, the dot is an importanrt feature!

Viewing 1 replies (of 1 total)
  • The topic ‘Usernames with dots don’t work anymore’ is closed to new replies.
Skip to toolbar