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:
parent
e9b5b1a5bc
commit
0f13b2c268
@ -185,6 +185,7 @@ class WP_REST_Search_Controller extends WP_REST_Controller {
|
|||||||
* Prepares a single search result for response.
|
* Prepares a single search result for response.
|
||||||
*
|
*
|
||||||
* @since 5.0.0
|
* @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 int|string $id ID of the item to prepare.
|
||||||
* @param WP_REST_Request $request Request object.
|
* @param WP_REST_Request $request Request object.
|
||||||
|
@ -78,6 +78,7 @@ abstract class WP_REST_Search_Handler {
|
|||||||
* Prepares the search result for a given ID.
|
* Prepares the search result for a given ID.
|
||||||
*
|
*
|
||||||
* @since 5.0.0
|
* @since 5.0.0
|
||||||
|
* @since 5.6.0 The `$id` parameter can accept a string.
|
||||||
*
|
*
|
||||||
* @param int|string $id Item ID.
|
* @param int|string $id Item ID.
|
||||||
* @param array $fields Fields to include for the item.
|
* @param array $fields Fields to include for the item.
|
||||||
@ -89,6 +90,7 @@ abstract class WP_REST_Search_Handler {
|
|||||||
* Prepares links for the search result of a given ID.
|
* Prepares links for the search result of a given ID.
|
||||||
*
|
*
|
||||||
* @since 5.0.0
|
* @since 5.0.0
|
||||||
|
* @since 5.6.0 The `$id` parameter can accept a string.
|
||||||
*
|
*
|
||||||
* @param int|string $id Item ID.
|
* @param int|string $id Item ID.
|
||||||
* @return array Links for the given item.
|
* @return array Links for the given item.
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.6-alpha-49088';
|
$wp_version = '5.6-alpha-49089';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user