Make WordPress Core


Ignore:
Timestamp:
08/11/2022 02:01:35 PM (3 years ago)
Author:
johnbillion
Message:

Docs: Correct and improve the documented types for various functions and hooks.

See #55646

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/search/class-wp-rest-term-search-handler.php

    r49955 r53877  
    4242     *
    4343     * @param WP_REST_Request $request Full REST request.
    44      * @return array Associative array containing an `WP_REST_Search_Handler::RESULT_IDS` containing
    45      *               an array of found IDs and `WP_REST_Search_Handler::RESULT_TOTAL` containing the
    46      *               total count for the matching search results.
     44     * @return array {
     45     *     Associative array containing found IDs and total count for the matching search results.
     46     *
     47     *     @type int[]               $ids   Found IDs.
     48     *     @type string|int|WP_Error $total Numeric string containing the number of terms in that
     49     *                                      taxonomy, 0 if there are no results, or WP_Error if
     50     *                                      the requested taxonomy does not exist.
     51     * }
    4752     */
    4853    public function search_items( WP_REST_Request $request ) {
     
    133138     *
    134139     * @param int $id Item ID.
    135      * @return array Links for the given item.
     140     * @return array[] Array of link arrays for the given item.
    136141     */
    137142    public function prepare_item_links( $id ) {
Note: See TracChangeset for help on using the changeset viewer.