- Timestamp:
- 11/09/2016 01:34:56 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
r39169 r39177 435 435 return $user_id; 436 436 } 437 438 add_user_to_blog( get_site()->id, $user_id, '' ); 437 439 } else { 438 440 $user_id = wp_insert_user( $user ); … … 558 560 559 561 $user = get_user_by( 'id', $id ); 562 563 if ( is_multisite() && ! is_user_member_of_blog( $id ) ) { 564 add_user_to_blog( get_current_blog_id(), $id, '' ); 565 } 560 566 561 567 if ( ! empty( $request['roles'] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.