- Timestamp:
- 11/16/2016 12:17:31 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
r39257 r39264 313 313 314 314 if ( empty( $id ) || empty( $user->ID ) ) { 315 return new WP_Error( 'rest_user_invalid_id', __( 'Invalid resource id.' ), array( 'status' => 404 ) );315 return new WP_Error( 'rest_user_invalid_id', __( 'Invalid resource ID.' ), array( 'status' => 404 ) ); 316 316 } 317 317 … … 343 343 344 344 if ( empty( $id ) || empty( $user->ID ) ) { 345 return new WP_Error( 'rest_user_invalid_id', __( 'Invalid resource id.' ), array( 'status' => 404 ) );345 return new WP_Error( 'rest_user_invalid_id', __( 'Invalid resource ID.' ), array( 'status' => 404 ) ); 346 346 } 347 347 … … 540 540 541 541 if ( ! $user ) { 542 return new WP_Error( 'rest_user_invalid_id', __( 'Invalid resource id.' ), array( 'status' => 404 ) );542 return new WP_Error( 'rest_user_invalid_id', __( 'Invalid resource ID.' ), array( 'status' => 404 ) ); 543 543 } 544 544 … … 683 683 684 684 if ( ! $user ) { 685 return new WP_Error( 'rest_user_invalid_id', __( 'Invalid resource id.' ), array( 'status' => 404 ) );685 return new WP_Error( 'rest_user_invalid_id', __( 'Invalid resource ID.' ), array( 'status' => 404 ) ); 686 686 } 687 687 688 688 if ( ! empty( $reassign ) ) { 689 689 if ( $reassign === $id || ! get_userdata( $reassign ) ) { 690 return new WP_Error( 'rest_user_invalid_reassign', __( 'Invalid resource idfor reassignment.' ), array( 'status' => 400 ) );690 return new WP_Error( 'rest_user_invalid_reassign', __( 'Invalid resource ID for reassignment.' ), array( 'status' => 400 ) ); 691 691 } 692 692 }
Note: See TracChangeset
for help on using the changeset viewer.