REST API: Uppercase 'ID' in endpoint descriptions and error messages for consistency with other strings.

See #38791.

git-svn-id: https://develop.svn.wordpress.org/trunk@39264 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2016-11-16 12:17:31 +00:00
parent 93583764b5
commit 9421418577
6 changed files with 25 additions and 25 deletions
@@ -1021,7 +1021,7 @@ class WP_REST_Comments_Controller extends WP_REST_Controller {
$prepared_comment['comment_author_email'] = $user->user_email;
$prepared_comment['comment_author_url'] = $user->user_url;
} else {
return new WP_Error( 'rest_comment_author_invalid', __( 'Invalid comment author id.' ), array( 'status' => 400 ) );
return new WP_Error( 'rest_comment_author_invalid', __( 'Invalid comment author ID.' ), array( 'status' => 400 ) );
}
}
@@ -1102,7 +1102,7 @@ class WP_REST_Comments_Controller extends WP_REST_Controller {
'readonly' => true,
),
'author' => array(
'description' => __( 'The id of the user object, if author was a user.' ),
'description' => __( 'The ID of the user object, if author was a user.' ),
'type' => 'integer',
'context' => array( 'view', 'edit', 'embed' ),
),
@@ -1187,13 +1187,13 @@ class WP_REST_Comments_Controller extends WP_REST_Controller {
'readonly' => true,
),
'parent' => array(
'description' => __( 'The id for the parent of the object.' ),
'description' => __( 'The ID for the parent of the object.' ),
'type' => 'integer',
'context' => array( 'view', 'edit', 'embed' ),
'default' => 0,
),
'post' => array(
'description' => __( 'The id of the associated post object.' ),
'description' => __( 'The ID of the associated post object.' ),
'type' => 'integer',
'context' => array( 'view', 'edit' ),
'default' => 0,