Make WordPress Core


Ignore:
Timestamp:
01/08/2021 02:28:46 PM (4 years ago)
Author:
johnbillion
Message:

Plugins: Replace usage of $this in action and filter parameter docblocks with more appropriate variable names.

See #51800, #52217

Fixes #52243

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/class-wp-rest-server.php

    r49927 r49946  
    458458         *
    459459         * @param WP_HTTP_Response $result  Result to send to the client. Usually a `WP_REST_Response`.
    460          * @param WP_REST_Server   $this    Server instance.
     460         * @param WP_REST_Server   $server  Server instance.
    461461         * @param WP_REST_Request  $request Request used to generate the response.
    462462         */
     
    487487         * @param WP_HTTP_Response $result  Result to send to the client. Usually a `WP_REST_Response`.
    488488         * @param WP_REST_Request  $request Request used to generate the response.
    489          * @param WP_REST_Server   $this    Server instance.
     489         * @param WP_REST_Server   $server  Server instance.
    490490         */
    491491        $served = apply_filters( 'rest_pre_serve_request', false, $result, $request, $this );
     
    509509             *
    510510             * @param array            $result  Response data to send to the client.
    511              * @param WP_REST_Server   $this    Server instance.
     511             * @param WP_REST_Server   $server  Server instance.
    512512             * @param WP_REST_Request  $request Request used to generate the response.
    513513             */
     
    967967         * @param mixed           $result  Response to replace the requested version with. Can be anything
    968968         *                                 a normal endpoint can return, or null to not hijack the request.
    969          * @param WP_REST_Server  $this    Server instance.
     969         * @param WP_REST_Server  $server  Server instance.
    970970         * @param WP_REST_Request $request Request used to generate the response.
    971971         */
Note: See TracChangeset for help on using the changeset viewer.