Changeset 40111 for branches/4.7/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
- Timestamp:
- 02/24/2017 08:45:52 PM (8 years ago)
- Location:
- branches/4.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7
-
branches/4.7/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
r39957 r40111 351 351 } 352 352 353 if ( is_multisite() && ! is_user_member_of_blog( $user->ID ) ) { 354 return $error; 355 } 356 353 357 return $user; 354 358 } … … 638 642 /* This action is documented in lib/endpoints/class-wp-rest-users-controller.php */ 639 643 do_action( 'rest_insert_user', $user, $request, false ); 640 641 if ( is_multisite() && ! is_user_member_of_blog( $id ) ) {642 add_user_to_blog( get_current_blog_id(), $id, '' );643 }644 644 645 645 if ( ! empty( $request['roles'] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.