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 7ad3aa0 commit 8adc393
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 @@ -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 ) ) {
Expand Down

0 comments on commit 8adc393

Please sign in to comment.