Docs: Add @since notes for the $id parameter of REST API search controller accepting a string.

Follow-up to [49088].

See #51131.
Built from https://develop.svn.wordpress.org/trunk@49089


git-svn-id: http://core.svn.wordpress.org/trunk@48851 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov
2020-10-03 01:22:11 +00:00
parent e9b5b1a5bc
commit 0f13b2c268
3 changed files with 4 additions and 1 deletions

View File

@@ -185,6 +185,7 @@ class WP_REST_Search_Controller extends WP_REST_Controller {
* Prepares a single search result for response.
*
* @since 5.0.0
* @since 5.6.0 The `$id` parameter can accept a string.
*
* @param int|string $id ID of the item to prepare.
* @param WP_REST_Request $request Request object.