Is there a code snippet (you mentioned on an earlier forum post) to get Username Availability Checker to work with Restrict Username Emails Characters plugin?
Restrict Username isn’t maintained, so if possible, it would be nice to have Username Availability Checker to respect Restrict Username Emails Characters plugin restrictions.
Worked on it the best I could…both plugins work great, except your’s doesn’t call their list, or at least see their listing for partial names not allowed, but instead your plugin uses $illegal_names = get_site_option( ‘illegal_names’ ); which ms-functions.php like line 605 in wp -includes directory.
So, I looked deeper, and noticed on your plugin username-availability-checker.php line 243
$illegal_names = get_site_option( 'illegal_names' );
and changed to
$illegal_names = get_site_option( 'illegal_names' ) && 'names_limit_partial';
Now your plugin sees their list.
names_limit_partialfrom “Restrict Usenrames Emails Characters” from their page-setts.php line 211
'uid' => 'names_limit_partial',
Does this seem okay with you?
Mmm, not quite working as expected.
Dang, really wanted this to recgonize the listing I made with Restrict Usernames Emails Characters.
$illegal_names = get_site_option( 'illegal_names' && defined('names_limit_partial') && 'names_limit_partial');
But that doens’t work.
- This reply was modified 2 years, 10 months ago by JohnnyNW.
You must be logged in to reply to this topic.