- Timestamp:
- 11/17/2016 03:52:18 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
r39266 r39278 388 388 389 389 if ( ! current_user_can( 'create_users' ) ) { 390 return new WP_Error( 'rest_cannot_create_user', __( 'Sorry, you are not allowed to create resource.' ), array( 'status' => rest_authorization_required_code() ) );390 return new WP_Error( 'rest_cannot_create_user', __( 'Sorry, you are not allowed to create new resource.' ), array( 'status' => rest_authorization_required_code() ) ); 391 391 } 392 392 … … 544 544 545 545 if ( email_exists( $request['email'] ) && $request['email'] !== $user->user_email ) { 546 return new WP_Error( 'rest_user_invalid_email', __( ' Email address is invalid.' ), array( 'status' => 400 ) );546 return new WP_Error( 'rest_user_invalid_email', __( 'Invalid email address.' ), array( 'status' => 400 ) ); 547 547 } 548 548 … … 552 552 553 553 if ( ! empty( $request['slug'] ) && $request['slug'] !== $user->user_nicename && get_user_by( 'slug', $request['slug'] ) ) { 554 return new WP_Error( 'rest_user_invalid_slug', __( ' Slug is invalid.' ), array( 'status' => 400 ) );554 return new WP_Error( 'rest_user_invalid_slug', __( 'Invalid slug.' ), array( 'status' => 400 ) ); 555 555 } 556 556 … … 1140 1140 ), 1141 1141 'link' => array( 1142 'description' => __( 'Author URL tothe resource.' ),1142 'description' => __( 'Author URL of the resource.' ), 1143 1143 'type' => 'string', 1144 1144 'format' => 'uri',
Note: See TracChangeset
for help on using the changeset viewer.