Make WordPress Core

Ticket #11746: random_password.diff

File random_password.diff, 393 bytes (added by uglyrobot, 13 years ago)

I know the function is pluggable, but can we keep the random_password filter? We use it.

  • pluggable.php

     
    14721472        $password = '';
    14731473        for ( $i = 0; $i < $length; $i++ )
    14741474                $password .= substr($chars, wp_rand(0, strlen($chars) - 1), 1);
    1475         return $password;
     1475        return apply_filters('random_password', $password);
    14761476}
    14771477endif;
    14781478