Make WordPress Core


Ignore:
Timestamp:
11/18/2021 01:48:43 PM (3 years ago)
Author:
johnbillion
Message:

Docs: Various corrections and improvements relating to types used in inline documentation.

See #53399

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php

    r52068 r52204  
    461461         * @since 5.8.0
    462462         *
    463          * @param string           $widget_id  ID of the widget marked for deletion.
    464          * @param string           $sidebar_id ID of the sidebar the widget was deleted from.
    465          * @param WP_REST_Response $response   The response data.
    466          * @param WP_REST_Request  $request    The request sent to the API.
     463         * @param string                    $widget_id  ID of the widget marked for deletion.
     464         * @param string                    $sidebar_id ID of the sidebar the widget was deleted from.
     465         * @param WP_REST_Response|WP_Error $response   The response data, or WP_Error object on failure.
     466         * @param WP_REST_Request           $request    The request sent to the API.
    467467         */
    468468        do_action( 'rest_delete_widget', $widget_id, $sidebar_id, $response, $request );
     
    734734         * @since 5.8.0
    735735         *
    736          * @param WP_REST_Response $response The response object.
    737          * @param array            $widget   The registered widget data.
    738          * @param WP_REST_Request  $request  Request used to generate the response.
     736         * @param WP_REST_Response|WP_Error $response The response object, or WP_Error object on failure.
     737         * @param array                     $widget   The registered widget data.
     738         * @param WP_REST_Request           $request  Request used to generate the response.
    739739         */
    740740        return apply_filters( 'rest_prepare_widget', $response, $widget, $request );
Note: See TracChangeset for help on using the changeset viewer.