s/add_user()/edit_user()/, see r19686 and #18749.
git-svn-id: https://develop.svn.wordpress.org/trunk@19689 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ddf13f09d1
commit
61c6ba8b70
|
@ -892,9 +892,9 @@ case 'add-user' :
|
||||||
check_ajax_referer( $action );
|
check_ajax_referer( $action );
|
||||||
if ( ! current_user_can('create_users') )
|
if ( ! current_user_can('create_users') )
|
||||||
die('-1');
|
die('-1');
|
||||||
if ( !$user_id = add_user() )
|
if ( ! $user_id = edit_user() ) {
|
||||||
die('0');
|
die('0');
|
||||||
elseif ( is_wp_error( $user_id ) ) {
|
} elseif ( is_wp_error( $user_id ) ) {
|
||||||
$x = new WP_Ajax_Response( array(
|
$x = new WP_Ajax_Response( array(
|
||||||
'what' => 'user',
|
'what' => 'user',
|
||||||
'id' => $user_id
|
'id' => $user_id
|
||||||
|
|
|
@ -93,7 +93,7 @@ Please click the following link to confirm the invite:
|
||||||
wp_die(__('Cheatin’ uh?'));
|
wp_die(__('Cheatin’ uh?'));
|
||||||
|
|
||||||
if ( ! is_multisite() ) {
|
if ( ! is_multisite() ) {
|
||||||
$user_id = add_user();
|
$user_id = edit_user();
|
||||||
|
|
||||||
if ( is_wp_error( $user_id ) ) {
|
if ( is_wp_error( $user_id ) ) {
|
||||||
$add_user_errors = $user_id;
|
$add_user_errors = $user_id;
|
||||||
|
|
Loading…
Reference in New Issue