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 __() {}
|
function __() {}
|
||||||
|
|
||||||
/**
|
|
||||||
* @ignore
|
|
||||||
*/
|
|
||||||
function _c() {}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ignore
|
* @ignore
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -16,11 +16,6 @@ define( 'WPINC', 'wp-includes' );
|
||||||
*/
|
*/
|
||||||
function __() {}
|
function __() {}
|
||||||
|
|
||||||
/**
|
|
||||||
* @ignore
|
|
||||||
*/
|
|
||||||
function _c() {}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ignore
|
* @ignore
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -489,7 +489,7 @@ switch ( $_GET['action'] ) {
|
||||||
elseif ( empty($user['email']) )
|
elseif ( empty($user['email']) )
|
||||||
wp_die( __('Missing 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'] ) );
|
$user_id = wpmu_create_user(wp_specialchars( strtolower( $user['username'] ) ), $password, wp_specialchars( $user['email'] ) );
|
||||||
|
|
||||||
if ( false == $user_id )
|
if ( false == $user_id )
|
||||||
|
|
Loading…
Reference in New Issue