mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 09:07:59 +01:00
Don't use deprecated functions. Props filosofo. fixes #11807
git-svn-id: http://svn.automattic.com/wordpress/trunk@12878 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
01b992c457
commit
fc204c952d
@ -16,11 +16,6 @@ define( 'WPINC', 'wp-includes' );
|
||||
*/
|
||||
function __() {}
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
function _c() {}
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
|
@ -16,11 +16,6 @@ define( 'WPINC', 'wp-includes' );
|
||||
*/
|
||||
function __() {}
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
function _c() {}
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
|
@ -489,7 +489,7 @@ switch ( $_GET['action'] ) {
|
||||
elseif ( empty($user['email']) )
|
||||
wp_die( __('Missing email.') );
|
||||
|
||||
$password = generate_random_password();
|
||||
$password = wp_generate_password();
|
||||
$user_id = wpmu_create_user(wp_specialchars( strtolower( $user['username'] ) ), $password, wp_specialchars( $user['email'] ) );
|
||||
|
||||
if ( false == $user_id )
|
||||
|
Loading…
Reference in New Issue
Block a user