Skip to content

Instantly share code, notes, and snippets.

@sjoonk
Created November 14, 2014 16:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sjoonk/e79de9034e31b2b097d2 to your computer and use it in GitHub Desktop.
Save sjoonk/e79de9034e31b2b097d2 to your computer and use it in GitHub Desktop.
add_filter( 'validate_username', 'usefulpa_validate_username_fix' );
function usefulpa_validate_username_fix( $valid, $username ) {
if ( empty($username) ) return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment