s/add_user()/edit_user()/, see r19686 and #18749.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19689 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6f8cc7b02d
commit
5fbd6657f4
|
@ -892,9 +892,9 @@ case 'add-user' :
|
|||
check_ajax_referer( $action );
|
||||
if ( ! current_user_can('create_users') )
|
||||
die('-1');
|
||||
if ( !$user_id = add_user() )
|
||||
if ( ! $user_id = edit_user() ) {
|
||||
die('0');
|
||||
elseif ( is_wp_error( $user_id ) ) {
|
||||
} elseif ( is_wp_error( $user_id ) ) {
|
||||
$x = new WP_Ajax_Response( array(
|
||||
'what' => 'user',
|
||||
'id' => $user_id
|
||||
|
|
|
@ -93,7 +93,7 @@ Please click the following link to confirm the invite:
|
|||
wp_die(__('Cheatin’ uh?'));
|
||||
|
||||
if ( ! is_multisite() ) {
|
||||
$user_id = add_user();
|
||||
$user_id = edit_user();
|
||||
|
||||
if ( is_wp_error( $user_id ) ) {
|
||||
$add_user_errors = $user_id;
|
||||
|
|
Loading…
Reference in New Issue