From 8ae6405657bbefcc57b75bec0d62d85c26d53013 Mon Sep 17 00:00:00 2001 From: Sean Fisher Date: Wed, 28 Feb 2024 14:25:42 -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 b1469b3..442b0a2 100644 --- a/plugin.php +++ b/plugin.php @@ -161,7 +161,7 @@ function should_prevent_anonymous_access( WP_REST_Server $server, WP_REST_Reques /** * Prevent access to the root of the REST API. * - * @param bool $prevent Whether to prevent anonymous access, default false. + * @param bool $prevent Whether to allow anonymous access to the REST API index. Default false. * @param string $endpoint The endpoint of the request. */ if ( '/' === $endpoint && false === apply_filters( 'rest_api_guard_allow_index_access', $settings['allow_index_access'] ?? false, $endpoint ) ) {