Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@thefuxia
Created September 13, 2012 20:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save thefuxia/3717551 to your computer and use it in GitHub Desktop.
Save thefuxia/3717551 to your computer and use it in GitHub Desktop.
T5 Trim Password
<?php # -*- coding: utf-8 -*-
/**
* Plugin Name: T5 Trim Password
* Description: Remove leading and trailing spaces from automatically generated passwords.
* Plugin URI: http://toscho.de/?p=2299
* Version: 2012.09.13
* Author: Thomas Scholz
* Author URI: http://toscho.de
*/
add_filter( 'random_password', 'trim' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment