Make WordPress Core

Changeset 56156


Ignore:
Timestamp:
07/06/2023 11:21:34 PM (3 years ago)
Author:
johnbillion
Message:

REST API: Correct some filter docblocks.

See #57752

File:
1 edited

Legend:

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

    r56096 r56156  
    407407                 *
    408408                 * @since 5.5.0
    409                  *
    410                  * @param string[] $expose_headers The list of response headers to expose.
    411                  * @param WP_REST_Request The request in context.
     409                 * @since 6.3.0 The `$request` parameter was added.
     410                 *
     411                 * @param string[]        $expose_headers The list of response headers to expose.
     412                 * @param WP_REST_Request $request        The request in context.
    412413                 */
    413414                $expose_headers = apply_filters( 'rest_exposed_cors_headers', $expose_headers, $request );
    … …  
    432433                 *
    433434                 * @since 5.5.0
    434                  *
    435                  * @param string[] $allow_headers The list of request headers to allow.
    436                  * @param WP_REST_Request The request in context.
     435                 * @since 6.3.0 The `$request` parameter was added.
     436                 *
     437                 * @param string[]        $allow_headers The list of request headers to allow.
     438                 * @param WP_REST_Request $request       The request in context.
    437439                 */
    438440                $allow_headers = apply_filters( 'rest_allowed_cors_headers', $allow_headers, $request );
Note: See TracChangeset for help on using the changeset viewer.