Skip to content

Commit

Permalink
Update plugin.php
Browse files Browse the repository at this point in the history
Co-authored-by: David Herrera <mail@dlh01.info>
  • Loading branch information
srtfisher and dlh01 authored Feb 28, 2024
1 parent 0f78b8b commit 7ad3aa0
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 @@ -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 ) ) {
Expand Down

0 comments on commit 7ad3aa0

Please sign in to comment.