From 82302c4ffb6c588db3fb5a5778b9c34718e855cf Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Thu, 6 Jul 2023 23:21:34 +0000 Subject: [PATCH] REST API: Correct some filter docblocks. See #57752 git-svn-id: https://develop.svn.wordpress.org/trunk@56156 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/rest-api/class-wp-rest-server.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/rest-api/class-wp-rest-server.php b/src/wp-includes/rest-api/class-wp-rest-server.php index 8c7c6d31c9..ff4cf3ec17 100644 --- a/src/wp-includes/rest-api/class-wp-rest-server.php +++ b/src/wp-includes/rest-api/class-wp-rest-server.php @@ -406,9 +406,10 @@ class WP_REST_Server { * Filters the list of response headers that are exposed to REST API CORS requests. * * @since 5.5.0 + * @since 6.3.0 The `$request` parameter was added. * - * @param string[] $expose_headers The list of response headers to expose. - * @param WP_REST_Request The request in context. + * @param string[] $expose_headers The list of response headers to expose. + * @param WP_REST_Request $request The request in context. */ $expose_headers = apply_filters( 'rest_exposed_cors_headers', $expose_headers, $request ); @@ -431,9 +432,10 @@ class WP_REST_Server { * As well as the Authorization and Nonce headers for allowing authentication. * * @since 5.5.0 + * @since 6.3.0 The `$request` parameter was added. * - * @param string[] $allow_headers The list of request headers to allow. - * @param WP_REST_Request The request in context. + * @param string[] $allow_headers The list of request headers to allow. + * @param WP_REST_Request $request The request in context. */ $allow_headers = apply_filters( 'rest_allowed_cors_headers', $allow_headers, $request );