Make WordPress Core


Ignore:
Timestamp:
07/30/2021 07:34:39 PM (5 years ago)
Author:
johnbillion
Message:

Docs: Replace $this in hook param docs with more appropriate names.

$this is a pseudo-variable that cannot be used as the name of a function parameter, so renaming these helps prevent errors when implementing hook callback functions.

Fixes #53457

File:
1 edited

Legend:

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

    r50150 r51518  
    379379         * @since 4.4.0
    380380         *
    381          * @param string[]        $order Array of types to check, in order of priority.
    382          * @param WP_REST_Request $this The request object.
     381         * @param string[]        $order   Array of types to check, in order of priority.
     382         * @param WP_REST_Request $request The request object.
    383383         */
    384384        return apply_filters( 'rest_request_parameter_order', $order, $this );
Note: See TracChangeset for help on using the changeset viewer.