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

Blank email address should not overwrite other blank email addresses #22

Open
efc opened this issue Oct 24, 2017 · 0 comments
Open

Blank email address should not overwrite other blank email addresses #22

efc opened this issue Oct 24, 2017 · 0 comments

Comments

@efc
Copy link

efc commented Oct 24, 2017

A blank email address should not overwrite another blank email address when importing a CSV. Otherwise it is impossible to import more than one user in a single file without email addresses (which is actually allowed by the WordPress API).

The fix is pretty simple, replace this line...

if ( ! $user && isset( $userdata['user_email'] ) )

with this...

if ( ! $user && isset( $userdata['user_email'] ) && $userdata['user_email'] )

I hope this can be fixed in a future version. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant