mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Don't use deprecated functions. Props filosofo. fixes #11807
git-svn-id: https://develop.svn.wordpress.org/trunk@12878 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
fd48be5b71
commit
19136bb073
@ -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