Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter('sanitize_user', 'non_strict_login', 10, 3);
- function non_strict_login( $username, $raw_username, $strict ) {
- if( !$strict )
- return $username;
- return sanitize_user(stripslashes($raw_username), false);
- }
Advertisement
Add Comment
Please, Sign In to add comment