WordPress.org

Make WordPress Core

Changeset 12624


Ignore:
Timestamp:
01/07/2010 02:22:51 AM (9 years ago)
Author:
ryan
Message:

Deprecate generate_random_password(). fixes #11746

Location:
trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/ms-edit.php

    r12622 r12624  
    158158        $user_id = email_exists($email);
    159159        if( !$user_id ) { // Create a new user with a random password
    160             $password = generate_random_password();
     160            $password = wp_generate_password();
    161161            $user_id = wpmu_create_user( $domain, $password, $email );
    162162            if(false == $user_id) {
  • trunk/wp-includes/ms-functions.php

    r12623 r12624  
    12151215    $user_email = $wpdb->escape($signup->user_email);
    12161216    wpmu_validate_user_signup($user_login, $user_email);
    1217     $password = generate_random_password();
     1217    $password = wp_generate_password();
    12181218
    12191219    $user_id = username_exists($user_login);
     
    12671267
    12681268    return array('blog_id' => $blog_id, 'user_id' => $user_id, 'password' => $password, 'title' => $signup->title, 'meta' => $meta);
    1269 }
    1270 
    1271 function generate_random_password( $len = 8 ) {
    1272     $random_password = substr(md5(uniqid(microtime())), 0, intval( $len ) );
    1273     $random_password = apply_filters('random_password', $random_password);
    1274     return $random_password;
    12751269}
    12761270
  • trunk/wp-settings.php

    r12609 r12624  
    406406    require_once( ABSPATH . WPINC . '/ms-functions.php' );
    407407    require_once( ABSPATH . WPINC . '/ms-default-filters.php' );
     408    require_once( ABSPATH . WPINC . '/ms-deprecated.php' );
    408409}
    409410
Note: See TracChangeset for help on using the changeset viewer.