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 723c5f477b..6572ad27c9 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 @@ -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. diff --git a/wp-includes/rest-api/search/class-wp-rest-search-handler.php b/wp-includes/rest-api/search/class-wp-rest-search-handler.php index be2cc21b13..b2aa64e916 100644 --- a/wp-includes/rest-api/search/class-wp-rest-search-handler.php +++ b/wp-includes/rest-api/search/class-wp-rest-search-handler.php @@ -78,6 +78,7 @@ abstract class WP_REST_Search_Handler { * Prepares the search result for a given ID. * * @since 5.0.0 + * @since 5.6.0 The `$id` parameter can accept a string. * * @param int|string $id Item ID. * @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. * * @since 5.0.0 + * @since 5.6.0 The `$id` parameter can accept a string. * * @param int|string $id Item ID. * @return array Links for the given item. diff --git a/wp-includes/version.php b/wp-includes/version.php index 3b02eedcee..f236d18b95 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @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.