mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
REST API: Update “resource” strings to use the appropriate nouns.
Props ramiy. Fixes #38811. git-svn-id: https://develop.svn.wordpress.org/trunk@39342 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1287,7 +1287,7 @@ class WP_REST_Comments_Controller extends WP_REST_Controller {
|
||||
$query_params['context']['default'] = 'view';
|
||||
|
||||
$query_params['after'] = array(
|
||||
'description' => __( 'Limit response to resources published after a given ISO8601 compliant date.' ),
|
||||
'description' => __( 'Limit response to comments published after a given ISO8601 compliant date.' ),
|
||||
'type' => 'string',
|
||||
'format' => 'date-time',
|
||||
);
|
||||
@@ -1316,7 +1316,7 @@ class WP_REST_Comments_Controller extends WP_REST_Controller {
|
||||
);
|
||||
|
||||
$query_params['before'] = array(
|
||||
'description' => __( 'Limit response to resources published before a given ISO8601 compliant date.' ),
|
||||
'description' => __( 'Limit response to comments published before a given ISO8601 compliant date.' ),
|
||||
'type' => 'string',
|
||||
'format' => 'date-time',
|
||||
);
|
||||
@@ -1371,7 +1371,7 @@ class WP_REST_Comments_Controller extends WP_REST_Controller {
|
||||
|
||||
$query_params['parent'] = array(
|
||||
'default' => array(),
|
||||
'description' => __( 'Limit result set to resources of specific parent IDs.' ),
|
||||
'description' => __( 'Limit result set to comments of specific parent IDs.' ),
|
||||
'type' => 'array',
|
||||
'items' => array(
|
||||
'type' => 'integer',
|
||||
@@ -1389,7 +1389,7 @@ class WP_REST_Comments_Controller extends WP_REST_Controller {
|
||||
|
||||
$query_params['post'] = array(
|
||||
'default' => array(),
|
||||
'description' => __( 'Limit result set to resources assigned to specific post IDs.' ),
|
||||
'description' => __( 'Limit result set to comments assigned to specific post IDs.' ),
|
||||
'type' => 'array',
|
||||
'items' => array(
|
||||
'type' => 'integer',
|
||||
|
||||
Reference in New Issue
Block a user