- Timestamp:
- 02/27/2018 02:30:46 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
r42343 r42761 471 471 $ret = wpmu_validate_user_signup( $user->user_login, $user->user_email ); 472 472 473 if ( is_wp_error( $ret['errors'] ) && ! empty( $ret['errors']->errors) ) {473 if ( is_wp_error( $ret['errors'] ) && $ret['errors']->has_errors() ) { 474 474 $error = new WP_Error( 'rest_invalid_param', __( 'Invalid user parameter(s).' ), array( 'status' => 400 ) ); 475 475 foreach ( $ret['errors']->errors as $code => $messages ) {
Note: See TracChangeset
for help on using the changeset viewer.