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 );