Skip to content

Commit

Permalink
Update plugin.php
Browse files Browse the repository at this point in the history
Co-authored-by: David Herrera <[email protected]>
  • Loading branch information
srtfisher and dlh01 authored Feb 28, 2024
1 parent 8adc393 commit 8ae6405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) ) {
Expand Down

0 comments on commit 8ae6405

Please sign in to comment.