mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
REST API: Correct some filter docblocks.
See #57752 git-svn-id: https://develop.svn.wordpress.org/trunk@56156 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9ad2859721
commit
82302c4ffb
@ -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 );
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user