mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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 );
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user