• Resolved Jeff Starr

    (@specialk)


    When a user registers via the Checkout page during purchase, EDD removes any spaces from the username. For example, if you enter “Test User” for the username, EDD will remove the space and register it as “TestUser”.

    Is this intentional? If so, it goes against core WordPress functionality, which allows users to include spaces in the username.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Chris Klosowski

    (@cklosows)

    Hey @specialk

    This was initially done intentionally based on a bug that was in PHP itself (but was fixed in a later release):
    https://core.trac.ww.wp.xz.cn/ticket/49395

    We preemptively made the change in 3.0 (while this issue was affecting WordPress installs), but we’ll have to reassess it now.

    It appears that it was fixed in later releases of PHP. We’ll have to log an issue and do some deep testing on all our supported PHP versions to ensure we don’t break compatibility.

    Thread Starter Jeff Starr

    (@specialk)

    Thanks for the information, @cklosows. That all makes sense why it was changed.

    Hopefully allowing spaces can be restored soon. WordPress itself allows users to include spaces, so unless EDD is registering users outside of WP APIs, it should be possible to just let WordPress handle it.

    It’s frustrating to users who register as “Pat Smith” and then try to log in based on what they entered. Only to get the “username is not registered” error because the actual registered username is “PatSmith”.

    If nothing else make the no-spaces requirement apparent right there on the form, where the user enters their name in the first place. Either auto-remove spaces as the user types, or trigger an error.. anything would be an improvement imo.

    Plugin Contributor Mihai Joldis

    (@misulicus)

    Hi @specialk

    We resolved this issue and it will be available with EDD 3.1!

    Regards

    Thread Starter Jeff Starr

    (@specialk)

    That is great news!

    I’ll keep an eye on it and mark this thread as resolved once EDD 3.1 is released.

    Thank you @misulicus

    Plugin Contributor Mihai Joldis

    (@misulicus)

    Hey @specialk

    Have you got to test the new update? This issue should now be resolved.

    Thread Starter Jeff Starr

    (@specialk)

    I have not yet had time to update, will let you know asap. Thanks!

    Thread Starter Jeff Starr

    (@specialk)

    Yes resolved, thank you!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Spaces removed from usernames’ is closed to new replies.