- Timestamp:
- 08/03/2017 09:40:02 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
r41162 r41225 493 493 } 494 494 495 add_user_to_blog( get_site()->id, $user_id, '' ); 495 $result= add_user_to_blog( get_site()->id, $user_id, '' ); 496 if ( is_wp_error( $result ) ) { 497 return $result; 498 } 496 499 } else { 497 500 $user_id = wp_insert_user( wp_slash( (array) $user ) );
Note: See TracChangeset
for help on using the changeset viewer.