Categories
Package/plugin/module WordPress

Restrict Usernames v2.0

I’d like to announce the official release of the updated Restrict Usernames plugin (v2.0) for WordPress.

Restrict the usernames that new users may use when registering for your site.

This release introduces numerous new features and improvements, including: support for disallowing spaces in usernames; support for requirement of substrings within usernames; support for localization; support for WP 2.9+, dropped support for versions of WP older than 2.8, and more.

The plugin’s official homepage is located at :
coffee2code.com/wp-plugins/restrict-usernames.

Comments welcome on this post for this version of the plugin. Comments will be closed once this release has been superseded by another.

Read more for a detailed ChangeLog of the release.

Detailed ChangeLog

These are the detailed changes, which may or may not make sense to you depending on your familiarity with the previous features and internals of the plugin.

  • Add option to disallow use of spaces in usernames
  • Add option to allow requirement of any of numerous substrings as part of usernames (including start with and end with requirements)
  • Add reset button to reset options
  • Move initialization of config array out of constructor and into new function load_config()
  • Create init() to handle calling load_textdomain() and load_config() (textdomain must be loaded before initializing config)
  • Return immediately if username being check is already invalid
  • Use strpos() instead of stristr()
  • Changed invocation of plugin’s install function to action hooked in constructor rather than in global space
  • Extract settings saving code into maybe_save_options()
  • Extract settings display code into display_option()
  • Update object’s option buffer after saving changed submitted by user
  • Add support for localization
  • Add .pot file
  • Add PHPDoc documentation
  • Note compatibility with WP 2.9+
  • Drop compatibility with versions of WP older than 2.8
  • Update documentation
  • Update copyright date

2 replies on “Restrict Usernames v2.0”

Thanks for the plugin. I’ve had the previous plugin sitting deactivated in my blog for a while now, not really needing it. With this new release’s restriction on spaces in usernames, I upgraded and activated. After saving my settings, I received this error.

Fatal error: Call to undefined method RestrictUsernames::get_option_names() in [obscured]/wp-content/plugins/restrict-usernames/restrict-usernames.php on line 202

Thanks again.

Thanks for the report! Unfortunately, I’m experiencing some technical difficulties at the moment. I will put up an update ASAP.

Comments are closed.