Create a gist now

Instantly share code, notes, and snippets.

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