From 045bec51a4f379ab5b75cdbe7ff18ccac3d38c95 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 31 Oct 2021 20:26:07 +0000 Subject: [PATCH] Docs: Add a `@since` note to `WP_REST_Post_Types_Controller::get_item_schema()` for the `supports` and `visibility` properties. The `taxonomies` and `rest_base` properties were also added after the method was initially introduced, but that happened during the same release cycle, so they don't need a separate `@since` note. Follow-up to [38832], [39097], [39191], [39647], [51959]. See #53399. git-svn-id: https://develop.svn.wordpress.org/trunk@51961 602fd350-edb4-49c9-b593-d223f7449a82 --- .../rest-api/endpoints/class-wp-rest-post-types-controller.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php index e2598ac89d..09b4e68bc0 100644 --- a/src/wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php +++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php @@ -268,6 +268,8 @@ class WP_REST_Post_Types_Controller extends WP_REST_Controller { * Retrieves the post type's schema, conforming to JSON Schema. * * @since 4.7.0 + * @since 4.8.0 The `supports` property was added. + * @since 5.9.0 The `visibility` property was added. * * @return array Item schema data. */