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:
duck_ 2012-01-05 21:02:42 +00:00
parent 6f8cc7b02d
commit 5fbd6657f4
2 changed files with 5 additions and 5 deletions

View File

@ -890,11 +890,11 @@ case 'add-meta' :
break;
case 'add-user' :
check_ajax_referer( $action );
if ( !current_user_can('create_users') )
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

View File

@ -92,8 +92,8 @@ Please click the following link to confirm the invite:
if ( ! current_user_can('create_users') )
wp_die(__('Cheatin’ uh?'));
if ( !is_multisite() ) {
$user_id = add_user();
if ( ! is_multisite() ) {
$user_id = edit_user();
if ( is_wp_error( $user_id ) ) {
$add_user_errors = $user_id;