WordPress.org

Make WordPress Core

Changeset 19689


Ignore:
Timestamp:
01/05/12 21:02:42 (2 years ago)
Author:
duck_
Message:

s/add_user()/edit_user()/, see r19686 and #18749.

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-ajax.php

    r19684 r19689  
    891891case 'add-user' : 
    892892    check_ajax_referer( $action ); 
    893     if ( !current_user_can('create_users') ) 
    894         die('-1'); 
    895     if ( !$user_id = add_user() ) 
     893    if ( ! current_user_can('create_users') ) 
     894        die('-1'); 
     895    if ( ! $user_id = edit_user() ) { 
    896896        die('0'); 
    897     elseif ( is_wp_error( $user_id ) ) { 
     897    } elseif ( is_wp_error( $user_id ) ) { 
    898898        $x = new WP_Ajax_Response( array( 
    899899            'what' => 'user', 
  • trunk/wp-admin/user-new.php

    r19676 r19689  
    9393        wp_die(__('Cheatin’ uh?')); 
    9494 
    95     if ( !is_multisite() ) { 
    96         $user_id = add_user(); 
     95    if ( ! is_multisite() ) { 
     96        $user_id = edit_user(); 
    9797 
    9898        if ( is_wp_error( $user_id ) ) { 
Note: See TracChangeset for help on using the changeset viewer.