From 7ad3aa020322cc196de0cb25092f4dfe410f2ebb Mon Sep 17 00:00:00 2001 From: Sean Fisher Date: Wed, 28 Feb 2024 14:25:29 -0500 Subject: [PATCH] Update plugin.php Co-authored-by: David Herrera --- plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.php b/plugin.php index e6ab2b7..00a9de6 100644 --- a/plugin.php +++ b/plugin.php @@ -64,7 +64,7 @@ function should_prevent_anonymous_access( WP_REST_Server $server, WP_REST_Reques * * This is useful for CORS preflight requests. * - * @param bool $allow Whether to allow OPTIONS requests, default true. + * @param bool $check Whether to check OPTIONS requests. Default false. * @param \WP_REST_Request $request REST API Request. */ if ( 'OPTIONS' === $request->get_method() && ! apply_filters( 'rest_api_guard_check_options_requests', $settings['check_options_requests'] ?? false, $request ) ) {