Make WordPress Core


Ignore:
Timestamp:
07/02/2021 07:03:11 PM (3 years ago)
Author:
desrosj
Message:

Docs: Remove an empty line between @param and @return tags in some newly added REST API methods, per the documentation standards.

Follow-up to [48242], [49925], [51003], [51021].

Props SergeyBiryukov.
Merges [51289] to the 5.8 branch.
See #52628, #53461.

Location:
branches/5.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.8

  • branches/5.8/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php

    r51221 r51317  
    146146     *
    147147     * @param WP_REST_Request $request The request instance.
    148      *
    149148     * @return WP_REST_Response
    150149     */
     
    157156            $query['area'] = $request['area'];
    158157        }
     158
    159159        $templates = array();
    160160        foreach ( get_block_templates( $query, $this->post_type ) as $template ) {
     
    184184     *
    185185     * @param WP_REST_Request $request The request instance.
    186      *
    187186     * @return WP_REST_Response|WP_Error
    188187     */
     
    406405     * @param WP_Block_Template $template Template instance.
    407406     * @param WP_REST_Request   $request Request object.
    408      *
    409407     * @return WP_REST_Response $data
    410408     */
Note: See TracChangeset for help on using the changeset viewer.