Open haroldkyle opened 9 years ago
Added code to enqueue styles properly so they don't get printed out at the wrong time. WP documentation says this needs to happen in wp_enqueue_scripts
.
Also, dependencies need to be specified in script registration.
Fixes #41
The open issue #41 suggested making this an option in the settings, but this could lead to confusion. (An option might mislead administators that they are making email addresses the user_login for everyone on the site, when this would only affect new registrations via SSO.)
Instead, I have introduced a filter that gives developers (who will know better, right?) the ability to modify the
user_login
value before the new user is inserted. In the case of creating an email login, they can just add this to thefunctions.php
:Quick, painless, and solves the problem at hand. :)