Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support emails in user_login field #21

Merged
merged 2 commits into from
Jun 29, 2017

Conversation

soulseekah
Copy link
Contributor

Logins can be set to e-mails, and are often set this way. This is fine,
until the user changes the e-mail (logins can't be changed). What
happens then? wp user get doesn't find the user by login, because if
the login is an e-mail it shorts to checking only the user_email field.

Rectify this. Tests included.

soulseekah and others added 2 commits June 30, 2017 01:50
Logins can be set to e-mails, and are often set this way. This is fine,
until the user changes the e-mail (logins can't be changed). What
happens then? `wp user get` doesn't find the user by login, because if
the login is an e-mail it shorts to checking only the user_email field.

Rectify this. Tests included.
@danielbachhuber danielbachhuber added this to the 1.0.3 milestone Jun 29, 2017
Copy link
Member

@danielbachhuber danielbachhuber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍 Made some WPCS changes too

@soulseekah
Copy link
Contributor Author

Thanks :)

@danielbachhuber danielbachhuber merged commit 5f92520 into wp-cli:master Jun 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants