Make WordPress Core


Ignore:
Timestamp:
02/27/2008 06:45:40 PM (16 years ago)
Author:
westi
Message:

Generate random passwords for users created during import. Fixes #5837 props pishmishy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/import/wordpress.php

    r6870 r7065  
    162162                $user_id = username_exists($new_author_name);
    163163                if ( !$user_id ) {
    164                     $user_id = wp_create_user($new_author_name, 'changeme');
     164                    $user_id = wp_create_user($new_author_name, wp_generate_password());
    165165                }
    166166
     
    182182<?php
    183183    if ( $this->allow_create_users() ) {
    184         echo '<p>'.__('If a new user is created by WordPress, the password will be set, by default, to "changeme". Quite suggestive, eh? ;)')."</p>\n";
     184        echo '<p>'.__('If a new user is created by WordPress, a password will be randomly generated. Manually change the user\'s details if necessary.')."</p>\n";
    185185    }
    186186
Note: See TracChangeset for help on using the changeset viewer.