Skip to content

Commit

Permalink
s/add_user()/edit_user()/, see r19686 and #18749.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.automattic.com/wordpress/trunk@19689 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
duck_ committed Jan 5, 2012
1 parent 6f8cc7b commit 5fbd665
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions wp-admin/admin-ajax.php
Expand Up @@ -890,11 +890,11 @@ function _wp_ajax_add_hierarchical_term() {
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
Expand Down
4 changes: 2 additions & 2 deletions wp-admin/user-new.php
Expand Up @@ -92,8 +92,8 @@ function admin_created_user_subject( $text ) {
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;
Expand Down

0 comments on commit 5fbd665

Please sign in to comment.