diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php index 84fa14480087..765b65714af9 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php @@ -642,7 +642,7 @@ public function prepare_item_for_response( $item, $request ) { } /** - * Prepares links for the object. + * Prepares links for the request. * * @since 5.6.0 * diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php index 007cee774b01..3519b0ad2b50 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php @@ -34,7 +34,7 @@ public function register_routes() { 'permission_callback' => array( $this, 'post_process_item_permissions_check' ), 'args' => array( 'id' => array( - 'description' => __( 'Unique identifier for the object.' ), + 'description' => __( 'Unique identifier for the attachment.' ), 'type' => 'integer', ), 'action' => array( @@ -888,12 +888,12 @@ public function get_item_schema() { ), 'properties' => array( 'raw' => array( - 'description' => __( 'Description for the object, as it exists in the database.' ), + 'description' => __( 'Description for the attachment, as it exists in the database.' ), 'type' => 'string', 'context' => array( 'edit' ), ), 'rendered' => array( - 'description' => __( 'HTML description for the object, transformed for display.' ), + 'description' => __( 'HTML description for the attachment, transformed for display.' ), 'type' => 'string', 'context' => array( 'view', 'edit' ), 'readonly' => true, diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php index 893a7e08eeb7..ef95ab89c295 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php @@ -86,7 +86,7 @@ public function register_routes() { array( 'args' => array( 'parent' => array( - 'description' => __( 'The ID for the parent of the object.' ), + 'description' => __( 'The ID for the parent of the autosave.' ), 'type' => 'integer', ), ), @@ -112,11 +112,11 @@ public function register_routes() { array( 'args' => array( 'parent' => array( - 'description' => __( 'The ID for the parent of the object.' ), + 'description' => __( 'The ID for the parent of the autosave.' ), 'type' => 'integer', ), 'id' => array( - 'description' => __( 'The ID for the object.' ), + 'description' => __( 'The ID for the autosave.' ), 'type' => 'integer', ), ), diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php index 1eea4d1aba7f..3d8672325f98 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php @@ -45,7 +45,7 @@ public function __construct() { } /** - * Registers the routes for the objects of the controller. + * Registers the routes for block types. * * @since 5.5.0 * diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php index 9f36e3b3866b..7fe58d819133 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php @@ -37,7 +37,7 @@ public function __construct() { } /** - * Registers the routes for the objects of the controller. + * Registers the routes for comments. * * @since 4.7.0 * @@ -71,7 +71,7 @@ public function register_routes() { array( 'args' => array( 'id' => array( - 'description' => __( 'Unique identifier for the object.' ), + 'description' => __( 'Unique identifier for the comment.' ), 'type' => 'integer', ), ), @@ -1381,7 +1381,7 @@ public function get_item_schema() { 'type' => 'object', 'properties' => array( 'id' => array( - 'description' => __( 'Unique identifier for the object.' ), + 'description' => __( 'Unique identifier for the comment.' ), 'type' => 'integer', 'context' => array( 'view', 'edit', 'embed' ), 'readonly' => true, @@ -1392,7 +1392,7 @@ public function get_item_schema() { 'context' => array( 'view', 'edit', 'embed' ), ), 'author_email' => array( - 'description' => __( 'Email address for the object author.' ), + 'description' => __( 'Email address for the comment author.' ), 'type' => 'string', 'format' => 'email', 'context' => array( 'edit' ), @@ -1402,13 +1402,13 @@ public function get_item_schema() { ), ), 'author_ip' => array( - 'description' => __( 'IP address for the object author.' ), + 'description' => __( 'IP address for the comment author.' ), 'type' => 'string', 'format' => 'ip', 'context' => array( 'edit' ), ), 'author_name' => array( - 'description' => __( 'Display name for the object author.' ), + 'description' => __( 'Display name for the comment author.' ), 'type' => 'string', 'context' => array( 'view', 'edit', 'embed' ), 'arg_options' => array( @@ -1416,13 +1416,13 @@ public function get_item_schema() { ), ), 'author_url' => array( - 'description' => __( 'URL for the object author.' ), + 'description' => __( 'URL for the comment author.' ), 'type' => 'string', 'format' => 'uri', 'context' => array( 'view', 'edit', 'embed' ), ), 'author_user_agent' => array( - 'description' => __( 'User agent for the object author.' ), + 'description' => __( 'User agent for the comment author.' ), 'type' => 'string', 'context' => array( 'edit' ), 'arg_options' => array( @@ -1430,7 +1430,7 @@ public function get_item_schema() { ), ), 'content' => array( - 'description' => __( 'The content for the object.' ), + 'description' => __( 'The content for the comment.' ), 'type' => 'object', 'context' => array( 'view', 'edit', 'embed' ), 'arg_options' => array( @@ -1439,12 +1439,12 @@ public function get_item_schema() { ), 'properties' => array( 'raw' => array( - 'description' => __( 'Content for the object, as it exists in the database.' ), + 'description' => __( 'Content for the comment, as it exists in the database.' ), 'type' => 'string', 'context' => array( 'edit' ), ), 'rendered' => array( - 'description' => __( 'HTML content for the object, transformed for display.' ), + 'description' => __( 'HTML content for the comment, transformed for display.' ), 'type' => 'string', 'context' => array( 'view', 'edit', 'embed' ), 'readonly' => true, @@ -1452,26 +1452,26 @@ public function get_item_schema() { ), ), 'date' => array( - 'description' => __( "The date the object was published, in the site's timezone." ), + 'description' => __( "The date the comment was published, in the site's timezone." ), 'type' => 'string', 'format' => 'date-time', 'context' => array( 'view', 'edit', 'embed' ), ), 'date_gmt' => array( - 'description' => __( 'The date the object was published, as GMT.' ), + 'description' => __( 'The date the comment was published, as GMT.' ), 'type' => 'string', 'format' => 'date-time', 'context' => array( 'view', 'edit' ), ), 'link' => array( - 'description' => __( 'URL to the object.' ), + 'description' => __( 'URL to the comment.' ), 'type' => 'string', 'format' => 'uri', 'context' => array( 'view', 'edit', 'embed' ), 'readonly' => true, ), 'parent' => array( - 'description' => __( 'The ID for the parent of the object.' ), + 'description' => __( 'The ID for the parent of the comment.' ), 'type' => 'integer', 'context' => array( 'view', 'edit', 'embed' ), 'default' => 0, @@ -1483,7 +1483,7 @@ public function get_item_schema() { 'default' => 0, ), 'status' => array( - 'description' => __( 'State of the object.' ), + 'description' => __( 'State of the comment.' ), 'type' => 'string', 'context' => array( 'view', 'edit' ), 'arg_options' => array( @@ -1491,7 +1491,7 @@ public function get_item_schema() { ), ), 'type' => array( - 'description' => __( 'Type of Comment for the object.' ), + 'description' => __( 'Type of the comment.' ), 'type' => 'string', 'context' => array( 'view', 'edit', 'embed' ), 'readonly' => true, @@ -1515,7 +1515,7 @@ public function get_item_schema() { } $schema['properties']['author_avatar_urls'] = array( - 'description' => __( 'Avatar URLs for the object author.' ), + 'description' => __( 'Avatar URLs for the comment author.' ), 'type' => 'object', 'context' => array( 'view', 'edit', 'embed' ), 'readonly' => true, @@ -1611,7 +1611,7 @@ public function get_collection_params() { ); $query_params['orderby'] = array( - 'description' => __( 'Sort collection by object attribute.' ), + 'description' => __( 'Sort collection by comment attribute.' ), 'type' => 'string', 'default' => 'date_gmt', 'enum' => array( diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php index 25223386e4d0..588bfcaf4158 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php @@ -27,7 +27,7 @@ public function __construct() { } /** - * Registers the routes for the objects of the controller. + * Registers the routes for post statuses. * * @since 4.7.0 * diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php index c4297a37c638..5d1d327f4f4e 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php @@ -27,7 +27,7 @@ public function __construct() { } /** - * Registers the routes for the objects of the controller. + * Registers the routes for post types. * * @since 4.7.0 * diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php index 16e3c91edfbf..6c0927761754 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php @@ -56,7 +56,7 @@ public function __construct( $post_type ) { } /** - * Registers the routes for the objects of the controller. + * Registers the routes for posts. * * @since 4.7.0 * @@ -100,7 +100,7 @@ public function register_routes() { array( 'args' => array( 'id' => array( - 'description' => __( 'Unique identifier for the object.' ), + 'description' => __( 'Unique identifier for the post.' ), 'type' => 'integer', ), ), @@ -2153,31 +2153,31 @@ public function get_item_schema() { // Base properties for every Post. 'properties' => array( 'date' => array( - 'description' => __( "The date the object was published, in the site's timezone." ), + 'description' => __( "The date the post was published, in the site's timezone." ), 'type' => array( 'string', 'null' ), 'format' => 'date-time', 'context' => array( 'view', 'edit', 'embed' ), ), 'date_gmt' => array( - 'description' => __( 'The date the object was published, as GMT.' ), + 'description' => __( 'The date the post was published, as GMT.' ), 'type' => array( 'string', 'null' ), 'format' => 'date-time', 'context' => array( 'view', 'edit' ), ), 'guid' => array( - 'description' => __( 'The globally unique identifier for the object.' ), + 'description' => __( 'The globally unique identifier for the post.' ), 'type' => 'object', 'context' => array( 'view', 'edit' ), 'readonly' => true, 'properties' => array( 'raw' => array( - 'description' => __( 'GUID for the object, as it exists in the database.' ), + 'description' => __( 'GUID for the post, as it exists in the database.' ), 'type' => 'string', 'context' => array( 'edit' ), 'readonly' => true, ), 'rendered' => array( - 'description' => __( 'GUID for the object, transformed for display.' ), + 'description' => __( 'GUID for the post, transformed for display.' ), 'type' => 'string', 'context' => array( 'view', 'edit' ), 'readonly' => true, @@ -2185,34 +2185,34 @@ public function get_item_schema() { ), ), 'id' => array( - 'description' => __( 'Unique identifier for the object.' ), + 'description' => __( 'Unique identifier for the post.' ), 'type' => 'integer', 'context' => array( 'view', 'edit', 'embed' ), 'readonly' => true, ), 'link' => array( - 'description' => __( 'URL to the object.' ), + 'description' => __( 'URL to the post.' ), 'type' => 'string', 'format' => 'uri', 'context' => array( 'view', 'edit', 'embed' ), 'readonly' => true, ), 'modified' => array( - 'description' => __( "The date the object was last modified, in the site's timezone." ), + 'description' => __( "The date the post was last modified, in the site's timezone." ), 'type' => 'string', 'format' => 'date-time', 'context' => array( 'view', 'edit' ), 'readonly' => true, ), 'modified_gmt' => array( - 'description' => __( 'The date the object was last modified, as GMT.' ), + 'description' => __( 'The date the post was last modified, as GMT.' ), 'type' => 'string', 'format' => 'date-time', 'context' => array( 'view', 'edit' ), 'readonly' => true, ), 'slug' => array( - 'description' => __( 'An alphanumeric identifier for the object unique to its type.' ), + 'description' => __( 'An alphanumeric identifier for the post unique to its type.' ), 'type' => 'string', 'context' => array( 'view', 'edit', 'embed' ), 'arg_options' => array( @@ -2220,7 +2220,7 @@ public function get_item_schema() { ), ), 'status' => array( - 'description' => __( 'A named status for the object.' ), + 'description' => __( 'A named status for the post.' ), 'type' => 'string', 'enum' => array_keys( get_post_stati( array( 'internal' => false ) ) ), 'context' => array( 'view', 'edit' ), @@ -2229,7 +2229,7 @@ public function get_item_schema() { ), ), 'type' => array( - 'description' => __( 'Type of Post for the object.' ), + 'description' => __( 'Type of post.' ), 'type' => 'string', 'context' => array( 'view', 'edit', 'embed' ), 'readonly' => true, @@ -2245,14 +2245,14 @@ public function get_item_schema() { $post_type_obj = get_post_type_object( $this->post_type ); if ( is_post_type_viewable( $post_type_obj ) && $post_type_obj->public ) { $schema['properties']['permalink_template'] = array( - 'description' => __( 'Permalink template for the object.' ), + 'description' => __( 'Permalink template for the post.' ), 'type' => 'string', 'context' => array( 'edit' ), 'readonly' => true, ); $schema['properties']['generated_slug'] = array( - 'description' => __( 'Slug automatically generated from the object title.' ), + 'description' => __( 'Slug automatically generated from the post title.' ), 'type' => 'string', 'context' => array( 'edit' ), 'readonly' => true, @@ -2261,7 +2261,7 @@ public function get_item_schema() { if ( $post_type_obj->hierarchical ) { $schema['properties']['parent'] = array( - 'description' => __( 'The ID for the parent of the object.' ), + 'description' => __( 'The ID for the parent of the post.' ), 'type' => 'integer', 'context' => array( 'view', 'edit' ), ); @@ -2322,7 +2322,7 @@ public function get_item_schema() { case 'title': $schema['properties']['title'] = array( - 'description' => __( 'The title for the object.' ), + 'description' => __( 'The title for the post.' ), 'type' => 'object', 'context' => array( 'view', 'edit', 'embed' ), 'arg_options' => array( @@ -2331,12 +2331,12 @@ public function get_item_schema() { ), 'properties' => array( 'raw' => array( - 'description' => __( 'Title for the object, as it exists in the database.' ), + 'description' => __( 'Title for the post, as it exists in the database.' ), 'type' => 'string', 'context' => array( 'edit' ), ), 'rendered' => array( - 'description' => __( 'HTML title for the object, transformed for display.' ), + 'description' => __( 'HTML title for the post, transformed for display.' ), 'type' => 'string', 'context' => array( 'view', 'edit', 'embed' ), 'readonly' => true, @@ -2347,7 +2347,7 @@ public function get_item_schema() { case 'editor': $schema['properties']['content'] = array( - 'description' => __( 'The content for the object.' ), + 'description' => __( 'The content for the post.' ), 'type' => 'object', 'context' => array( 'view', 'edit' ), 'arg_options' => array( @@ -2356,18 +2356,18 @@ public function get_item_schema() { ), 'properties' => array( 'raw' => array( - 'description' => __( 'Content for the object, as it exists in the database.' ), + 'description' => __( 'Content for the post, as it exists in the database.' ), 'type' => 'string', 'context' => array( 'edit' ), ), 'rendered' => array( - 'description' => __( 'HTML content for the object, transformed for display.' ), + 'description' => __( 'HTML content for the post, transformed for display.' ), 'type' => 'string', 'context' => array( 'view', 'edit' ), 'readonly' => true, ), 'block_version' => array( - 'description' => __( 'Version of the content block format used by the object.' ), + 'description' => __( 'Version of the content block format used by the post.' ), 'type' => 'integer', 'context' => array( 'edit' ), 'readonly' => true, @@ -2384,7 +2384,7 @@ public function get_item_schema() { case 'author': $schema['properties']['author'] = array( - 'description' => __( 'The ID for the author of the object.' ), + 'description' => __( 'The ID for the author of the post.' ), 'type' => 'integer', 'context' => array( 'view', 'edit', 'embed' ), ); @@ -2392,7 +2392,7 @@ public function get_item_schema() { case 'excerpt': $schema['properties']['excerpt'] = array( - 'description' => __( 'The excerpt for the object.' ), + 'description' => __( 'The excerpt for the post.' ), 'type' => 'object', 'context' => array( 'view', 'edit', 'embed' ), 'arg_options' => array( @@ -2401,12 +2401,12 @@ public function get_item_schema() { ), 'properties' => array( 'raw' => array( - 'description' => __( 'Excerpt for the object, as it exists in the database.' ), + 'description' => __( 'Excerpt for the post, as it exists in the database.' ), 'type' => 'string', 'context' => array( 'edit' ), ), 'rendered' => array( - 'description' => __( 'HTML excerpt for the object, transformed for display.' ), + 'description' => __( 'HTML excerpt for the post, transformed for display.' ), 'type' => 'string', 'context' => array( 'view', 'edit', 'embed' ), 'readonly' => true, @@ -2423,7 +2423,7 @@ public function get_item_schema() { case 'thumbnail': $schema['properties']['featured_media'] = array( - 'description' => __( 'The ID of the featured media for the object.' ), + 'description' => __( 'The ID of the featured media for the post.' ), 'type' => 'integer', 'context' => array( 'view', 'edit', 'embed' ), ); @@ -2431,13 +2431,13 @@ public function get_item_schema() { case 'comments': $schema['properties']['comment_status'] = array( - 'description' => __( 'Whether or not comments are open on the object.' ), + 'description' => __( 'Whether or not comments are open on the post.' ), 'type' => 'string', 'enum' => array( 'open', 'closed' ), 'context' => array( 'view', 'edit' ), ); $schema['properties']['ping_status'] = array( - 'description' => __( 'Whether or not the object can be pinged.' ), + 'description' => __( 'Whether or not the post can be pinged.' ), 'type' => 'string', 'enum' => array( 'open', 'closed' ), 'context' => array( 'view', 'edit' ), @@ -2446,7 +2446,7 @@ public function get_item_schema() { case 'page-attributes': $schema['properties']['menu_order'] = array( - 'description' => __( 'The order of the object in relation to other object of its type.' ), + 'description' => __( 'The order of the post in relation to other posts.' ), 'type' => 'integer', 'context' => array( 'view', 'edit' ), ); @@ -2457,7 +2457,7 @@ public function get_item_schema() { $formats = array_values( get_post_format_slugs() ); $schema['properties']['format'] = array( - 'description' => __( 'The format for the object.' ), + 'description' => __( 'The format for the post.' ), 'type' => 'string', 'enum' => $formats, 'context' => array( 'view', 'edit' ), @@ -2473,14 +2473,14 @@ public function get_item_schema() { if ( 'post' === $this->post_type ) { $schema['properties']['sticky'] = array( - 'description' => __( 'Whether or not the object should be treated as sticky.' ), + 'description' => __( 'Whether or not the post should be treated as sticky.' ), 'type' => 'boolean', 'context' => array( 'view', 'edit' ), ); } $schema['properties']['template'] = array( - 'description' => __( 'The theme file to use to display the object.' ), + 'description' => __( 'The theme file to use to display the post.' ), 'type' => 'string', 'context' => array( 'view', 'edit' ), 'arg_options' => array( @@ -2510,7 +2510,7 @@ public function get_item_schema() { $schema['properties'][ $base ] = array( /* translators: %s: Taxonomy name. */ - 'description' => sprintf( __( 'The terms assigned to the object in the %s taxonomy.' ), $taxonomy->name ), + 'description' => sprintf( __( 'The terms assigned to the post in the %s taxonomy.' ), $taxonomy->name ), 'type' => 'array', 'items' => array( 'type' => 'integer', @@ -2780,7 +2780,7 @@ public function get_collection_params() { ); $query_params['orderby'] = array( - 'description' => __( 'Sort collection by object attribute.' ), + 'description' => __( 'Sort collection by post attribute.' ), 'type' => 'string', 'default' => 'date', 'enum' => array( diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php index ef22922abf74..09f9981d2b3d 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php @@ -75,7 +75,7 @@ public function register_routes() { array( 'args' => array( 'parent' => array( - 'description' => __( 'The ID for the parent of the object.' ), + 'description' => __( 'The ID for the parent of the revision.' ), 'type' => 'integer', ), ), @@ -95,11 +95,11 @@ public function register_routes() { array( 'args' => array( 'parent' => array( - 'description' => __( 'The ID for the parent of the object.' ), + 'description' => __( 'The ID for the parent of the revision.' ), 'type' => 'integer', ), 'id' => array( - 'description' => __( 'Unique identifier for the object.' ), + 'description' => __( 'Unique identifier for the revision.' ), 'type' => 'integer', ), ), @@ -675,51 +675,51 @@ public function get_item_schema() { // Base properties for every Revision. 'properties' => array( 'author' => array( - 'description' => __( 'The ID for the author of the object.' ), + 'description' => __( 'The ID for the author of the revision.' ), 'type' => 'integer', 'context' => array( 'view', 'edit', 'embed' ), ), 'date' => array( - 'description' => __( "The date the object was published, in the site's timezone." ), + 'description' => __( "The date the revision was published, in the site's timezone." ), 'type' => 'string', 'format' => 'date-time', 'context' => array( 'view', 'edit', 'embed' ), ), 'date_gmt' => array( - 'description' => __( 'The date the object was published, as GMT.' ), + 'description' => __( 'The date the revision was published, as GMT.' ), 'type' => 'string', 'format' => 'date-time', 'context' => array( 'view', 'edit' ), ), 'guid' => array( - 'description' => __( 'GUID for the object, as it exists in the database.' ), + 'description' => __( 'GUID for the revision, as it exists in the database.' ), 'type' => 'string', 'context' => array( 'view', 'edit' ), ), 'id' => array( - 'description' => __( 'Unique identifier for the object.' ), + 'description' => __( 'Unique identifier for the revision.' ), 'type' => 'integer', 'context' => array( 'view', 'edit', 'embed' ), ), 'modified' => array( - 'description' => __( "The date the object was last modified, in the site's timezone." ), + 'description' => __( "The date the revision was last modified, in the site's timezone." ), 'type' => 'string', 'format' => 'date-time', 'context' => array( 'view', 'edit' ), ), 'modified_gmt' => array( - 'description' => __( 'The date the object was last modified, as GMT.' ), + 'description' => __( 'The date the revision was last modified, as GMT.' ), 'type' => 'string', 'format' => 'date-time', 'context' => array( 'view', 'edit' ), ), 'parent' => array( - 'description' => __( 'The ID for the parent of the object.' ), + 'description' => __( 'The ID for the parent of the revision.' ), 'type' => 'integer', 'context' => array( 'view', 'edit', 'embed' ), ), 'slug' => array( - 'description' => __( 'An alphanumeric identifier for the object unique to its type.' ), + 'description' => __( 'An alphanumeric identifier for the revision unique to its type.' ), 'type' => 'string', 'context' => array( 'view', 'edit', 'embed' ), ), diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-search-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-search-controller.php index 6572ad27c9c9..0e223ffb7728 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-search-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-search-controller.php @@ -82,7 +82,7 @@ public function __construct( array $search_handlers ) { } /** - * Registers the routes for the objects of the controller. + * Registers the routes for the search controller. * * @since 5.0.0 * diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php index 6b41725d8ccc..157c49acbe01 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php @@ -27,7 +27,7 @@ public function __construct() { } /** - * Registers the routes for the objects of the controller. + * Registers the routes for the site's settings. * * @since 4.7.0 * diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php index 89544b936580..0089afbfb1fa 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php @@ -27,7 +27,7 @@ public function __construct() { } /** - * Registers the routes for the objects of the controller. + * Registers the routes for taxonomies. * * @since 4.7.0 * diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php index 0af8712f07bd..951973ca8d3c 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php @@ -65,7 +65,7 @@ public function __construct( $taxonomy ) { } /** - * Registers the routes for the objects of the controller. + * Registers the routes for terms. * * @since 4.7.0 * diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php index 212288d47674..f1e8a8bd12f4 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php @@ -27,7 +27,7 @@ public function __construct() { } /** - * Registers the routes for the objects of the controller. + * Registers the routes for themes. * * @since 5.0.0 * diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php index 58071fde6e92..962ff4b3d990 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php @@ -37,7 +37,7 @@ public function __construct() { } /** - * Registers the routes for the objects of the controller. + * Registers the routes for users. * * @since 4.7.0 * @@ -1520,7 +1520,7 @@ public function get_collection_params() { $query_params['orderby'] = array( 'default' => 'name', - 'description' => __( 'Sort collection by object attribute.' ), + 'description' => __( 'Sort collection by user attribute.' ), 'enum' => array( 'id', 'include', diff --git a/wp-includes/rest-api/fields/class-wp-rest-comment-meta-fields.php b/wp-includes/rest-api/fields/class-wp-rest-comment-meta-fields.php index c3a810f33cf8..033ef9cd872f 100644 --- a/wp-includes/rest-api/fields/class-wp-rest-comment-meta-fields.php +++ b/wp-includes/rest-api/fields/class-wp-rest-comment-meta-fields.php @@ -17,7 +17,7 @@ class WP_REST_Comment_Meta_Fields extends WP_REST_Meta_Fields { /** - * Retrieves the object type for comment meta. + * Retrieves the comment type for comment meta. * * @since 4.7.0 * @@ -28,7 +28,7 @@ protected function get_meta_type() { } /** - * Retrieves the object meta subtype. + * Retrieves the comment meta subtype. * * @since 4.9.8 * diff --git a/wp-includes/rest-api/fields/class-wp-rest-post-meta-fields.php b/wp-includes/rest-api/fields/class-wp-rest-post-meta-fields.php index cddc50dcd417..4b1dc23b30b5 100644 --- a/wp-includes/rest-api/fields/class-wp-rest-post-meta-fields.php +++ b/wp-includes/rest-api/fields/class-wp-rest-post-meta-fields.php @@ -36,7 +36,7 @@ public function __construct( $post_type ) { } /** - * Retrieves the object meta type. + * Retrieves the post meta type. * * @since 4.7.0 * @@ -47,7 +47,7 @@ protected function get_meta_type() { } /** - * Retrieves the object meta subtype. + * Retrieves the post meta subtype. * * @since 4.9.8 * diff --git a/wp-includes/rest-api/fields/class-wp-rest-term-meta-fields.php b/wp-includes/rest-api/fields/class-wp-rest-term-meta-fields.php index 237a4c01e0b5..281e1316c9ab 100644 --- a/wp-includes/rest-api/fields/class-wp-rest-term-meta-fields.php +++ b/wp-includes/rest-api/fields/class-wp-rest-term-meta-fields.php @@ -36,7 +36,7 @@ public function __construct( $taxonomy ) { } /** - * Retrieves the object meta type. + * Retrieves the term meta type. * * @since 4.7.0 * @@ -47,7 +47,7 @@ protected function get_meta_type() { } /** - * Retrieves the object meta subtype. + * Retrieves the term meta subtype. * * @since 4.9.8 * diff --git a/wp-includes/rest-api/fields/class-wp-rest-user-meta-fields.php b/wp-includes/rest-api/fields/class-wp-rest-user-meta-fields.php index d35cb2ba5901..fb1513c58ad4 100644 --- a/wp-includes/rest-api/fields/class-wp-rest-user-meta-fields.php +++ b/wp-includes/rest-api/fields/class-wp-rest-user-meta-fields.php @@ -17,7 +17,7 @@ class WP_REST_User_Meta_Fields extends WP_REST_Meta_Fields { /** - * Retrieves the object meta type. + * Retrieves the user meta type. * * @since 4.7.0 * @@ -28,7 +28,7 @@ protected function get_meta_type() { } /** - * Retrieves the object meta subtype. + * Retrieves the user meta subtype. * * @since 4.9.8 * diff --git a/wp-includes/version.php b/wp-includes/version.php index a0148edb0d5e..628311e769cd 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-alpha-50999'; +$wp_version = '5.8-alpha-51000'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.