From 8adc393b262cf049f0e12c436543da77d3c54ddf Mon Sep 17 00:00:00 2001 From: Sean Fisher Date: Wed, 28 Feb 2024 14:25:33 -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 00a9de6..b1469b3 100644 --- a/plugin.php +++ b/plugin.php @@ -184,7 +184,7 @@ function should_prevent_anonymous_access( WP_REST_Server $server, WP_REST_Reques /** * Prevent access to the /wp/v2/users endpoints by default. * - * @param bool $pre Whether to prevent access to the /wp/v2/users endpoints. + * @param bool $pre Whether to allow access to the /wp/v2/users endpoints. * @param string $endpoint The endpoint of the request. */ if ( preg_match( '#^/wp/v\d+/users($|/)#', $endpoint ) && false === apply_filters( 'rest_api_guard_allow_user_access', $settings['allow_user_access'] ?? false, $endpoint ) ) {