WordPress.org

Make WordPress Core

Changeset 12653


Ignore:
Timestamp:
01/07/2010 08:49:04 PM (10 years ago)
Author:
westi
Message:

Run the old WPMU random_password filter in wp_generate_password(). Fixes #11746 props uglyrobot.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/pluggable.php

    r12598 r12653  
    14711471
    14721472    $password = '';
    1473     for ( $i = 0; $i < $length; $i++ )
     1473    for ( $i = 0; $i < $length; $i++ ) {
    14741474        $password .= substr($chars, wp_rand(0, strlen($chars) - 1), 1);
    1475     return $password;
     1475    }
     1476
     1477    // random_password filter was previously in random_password function which was deprecated
     1478    return apply_filters('random_password', $password);
    14761479}
    14771480endif;
Note: See TracChangeset for help on using the changeset viewer.