Docs: Miscellaneous improvements and corrections to docblocks.

See #56792


git-svn-id: https://develop.svn.wordpress.org/trunk@55293 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2023-02-07 21:19:46 +00:00
parent d2d0f6627f
commit 9c4ddc2e9e
7 changed files with 33 additions and 20 deletions

View File

@@ -360,7 +360,7 @@ class WP_REST_Search_Controller extends WP_REST_Controller {
* @param string|array $subtypes One or more subtypes.
* @param WP_REST_Request $request Full details about the request.
* @param string $parameter Parameter name.
* @return array|WP_Error List of valid subtypes, or WP_Error object on failure.
* @return string[]|WP_Error List of valid subtypes, or WP_Error object on failure.
*/
public function sanitize_subtypes( $subtypes, $request, $parameter ) {
$subtypes = wp_parse_slug_list( $subtypes );

View File

@@ -37,7 +37,7 @@ abstract class WP_REST_Search_Handler {
* Object subtypes managed by this search handler.
*
* @since 5.0.0
* @var array
* @var string[]
*/
protected $subtypes = array();
@@ -57,7 +57,7 @@ abstract class WP_REST_Search_Handler {
*
* @since 5.0.0
*
* @return array Array of object subtype identifiers.
* @return string[] Array of object subtype identifiers.
*/
public function get_subtypes() {
return $this->subtypes;