REST API: Correct some filter docblocks.

See #57752

Built from https://develop.svn.wordpress.org/trunk@56156


git-svn-id: http://core.svn.wordpress.org/trunk@55668 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
John Blackbourn 2023-07-06 23:23:22 +00:00
parent 1ae044c7b0
commit bf9257de5f
2 changed files with 7 additions and 5 deletions

View File

@ -406,9 +406,10 @@ class WP_REST_Server {
* Filters the list of response headers that are exposed to REST API CORS requests. * Filters the list of response headers that are exposed to REST API CORS requests.
* *
* @since 5.5.0 * @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 string[] $expose_headers The list of response headers to expose.
* @param WP_REST_Request The request in context. * @param WP_REST_Request $request The request in context.
*/ */
$expose_headers = apply_filters( 'rest_exposed_cors_headers', $expose_headers, $request ); $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. * As well as the Authorization and Nonce headers for allowing authentication.
* *
* @since 5.5.0 * @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 string[] $allow_headers The list of request headers to allow.
* @param WP_REST_Request The request in context. * @param WP_REST_Request $request The request in context.
*/ */
$allow_headers = apply_filters( 'rest_allowed_cors_headers', $allow_headers, $request ); $allow_headers = apply_filters( 'rest_allowed_cors_headers', $allow_headers, $request );

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.3-beta3-56155'; $wp_version = '6.3-beta3-56156';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.