Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Diacritic letters i username? Like Göran


Sam Bauers
Participant

@sambauers

That plugin is old and won’t work with 0.8.4 (and maybe not with 0.8.3.1)

Once 0.8.4 is released this should work as a plugin for both WordPress and bbPress:

<?php
/*
Plugin Name: Lax user names
Plugin URI:
Description: Makes all user name sanitisation non-strict
Author: Sam Bauers
Version: 0.0.1
Author URI: http://unlettered.org/
*/

function i18n_sanitize_user($username, $raw_username = false, $strict = false) {
if ($strict) {
return sanitize_user($raw_username);
} else {
return $username;
}
}

add_filter('sanitize_user', 'i18n_sanitize_user');
?>

Skip to toolbar